Re: [fpc-pascal] writing device driver using FPC

2007-04-06 Thread Henry Vermaak
just to chime in here, libusb is probably the easiest way to go here. we've been using the ftdi and cypress chips under windows and linux with (almost) the same code (pascal and c). got them to work on arm, too :) have a look at the libusb mailing list, as they're going through some api changes

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Luca Olivetti
En/na Bisma Jayadi ha escrit: What kind of windows driver? First choose that. There are lot´s and lot´s of types of windows drivers. Device driver for a custom hardware connected through USB port. I'm currently writing an "usermode" device driver for an USB device (a voip phone) using libusb

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Marc Santhoff
Am Donnerstag, den 05.04.2007, 17:36 +0700 schrieb Bisma Jayadi: > > What kind of windows driver? First choose that. There are lot´s and > > lot´s of types of windows drivers. > > Device driver for a custom hardware connected through USB port. > > > I´ve already seen a framework to write VXD driv

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Marc Pertron
Felipe Monteiro de Carvalho a écrit : Which usb interface chips do you know? I´ve been using FT8U245BM from http://www.ftdichip.com/ It does a good job, but knowing others is always good =) World seems small, i used the same, but it's not "real usb", but i agree that it will be enough for 95%

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Felipe Monteiro de Carvalho
On 4/5/07, Marc Pertron <[EMAIL PROTECTED]> wrote: Ok, this will depend on the chip you used on your device for USB. Most of the chips comes with a SDK and drivers, so it's as simple as a DLL use. Of course, some chips have better SDK than others. Which usb interface chips do you know? I´ve be

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Marc Pertron
Bisma Jayadi a écrit : What kind of windows driver? First choose that. There are lot´s and lot´s of types of windows drivers. Device driver for a custom hardware connected through USB port. Ok, this will depend on the chip you used on your device for USB. Most of the chips comes with a SDK and

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Bisma Jayadi
What kind of windows driver? First choose that. There are lot´s and lot´s of types of windows drivers. Device driver for a custom hardware connected through USB port. I´ve already seen a framework to write VXD drivers using Delphi, but that will be of no use if you don´t want a VxD but another

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Vinzent Hoefler
On Thursday 05 April 2007 08:14, Felipe Monteiro de Carvalho wrote: > On 4/5/07, Vinzent Hoefler <[EMAIL PROTECTED]> wrote: > > And it would mean writing a C to Pascal conversion of an ever > > changing kernel interface. > > All interfaces change when a new version is released, Well, I was not tal

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Felipe Monteiro de Carvalho
On 4/5/07, Bisma Jayadi <[EMAIL PROTECTED]> wrote: Is there any tutorials or wikis or how-tos out there that describe how to write a device driver using FPC? At least for windows platform. TIA. What kind of windows driver? First choose that. There are lot´s and lot´s of types of windows drivers

Re[2]: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Alexey Pavluchenko
Hello Felipe, Thursday, April 05, 2007, 11:14:24 AM, you wrote: > What really doesn´t help is that the windows driver world is huge. > really vast. There are dozens of different driver types, and some > tipes only work on some versions of windows. Well, not dozens. There are, basically: user-mo

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Michael Van Canneyt
On Thu, 5 Apr 2007, Vinzent Hoefler wrote: > On Thursday 05 April 2007 08:14, Felipe Monteiro de Carvalho wrote: > > On 4/5/07, Vinzent Hoefler <[EMAIL PROTECTED]> wrote: > > > And it would mean writing a C to Pascal conversion of an ever > > > changing kernel interface. > > > > All interfaces c

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Bisma Jayadi
Well. FPC can be used to write an operating system, so writing a device driver is in theory possible. Is there any tutorials or wikis or how-tos out there that describe how to write a device driver using FPC? At least for windows platform. TIA. -Bee- has Bee.ography at: http://beeography.wor

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Vinzent Hoefler
On Thursday 05 April 2007 08:57, Michael Van Canneyt wrote: > The solution is rather simple, it seems to me: write a small C driver > stub which exposes a uniform interface. Yes. Of course, apart from the fact that this portion of code can get rather large depending on the structures and functio

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Felipe Monteiro de Carvalho
On 4/5/07, Vinzent Hoefler <[EMAIL PROTECTED]> wrote: And it would mean writing a C to Pascal conversion of an ever changing kernel interface. All interfaces change when a new version is released, that´s no reason not to write pascal bindings for them. We have different pascal bindings for Qt 2

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Vinzent Hoefler
On Thursday 05 April 2007 07:36, Michael Van Canneyt wrote: > On Thu, 5 Apr 2007, Bisma Jayadi wrote: > > Writing device driver for windows using Delphi is almost impossible > > since Delphi can't produce .sys files. Is it the same case for FPC? > > Can FPC produce .sys file and write device driver

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Michael Van Canneyt
On Thu, 5 Apr 2007, Bisma Jayadi wrote: > Writing device driver for windows using Delphi is almost impossible since > Delphi can't produce .sys files. Is it the same case for FPC? Can FPC produce > .sys file and write device drivers for any OSes (not just windows)? TIA. Well. FPC can be used to

[fpc-pascal] writing device driver using FPC

2007-04-05 Thread Bisma Jayadi
Writing device driver for windows using Delphi is almost impossible since Delphi can't produce .sys files. Is it the same case for FPC? Can FPC produce .sys file and write device drivers for any OSes (not just windows)? TIA. -Bee- has Bee.ography at: http://beeography.wordpress.com ___