[fpc-pascal] writing device driver using FPC
Marc Santhoff
M.Santhoff at t-online.de
Thu Apr 5 15:49:40 CEST 2007
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 drivers using Delphi, but
> > that will be of no use if you don´t want a VxD but another type of
> > driver.
>
> This is my first time writing a device driver, so I don't really understand what
> are the differences between .vxd and .sys driver type. Most important is, I want
> to write it using pascal language and avoid as much as possible to use C. I
> think I need to learn more about this and come back here later with more precise
> questions.
Have you had a look at "libusb-w32" (or similar spelling) at
sourceforge?
If that thing works for you it'll be very easy, open the device via the
dll functions and you got a channel you can use for whatever protocoll
your hardware implements.
I'm using boards having Phillips PDIUSB12 chips for coupling AVR micros
but it does not work flawlessly, but it's woth trying.
And there is a linux version, too. This would make your hardware cross
platform, if it works ...
HTH,
Marc
More information about the fpc-pascal
mailing list