To provide the USB interface, I've used libusb (version 0.1.8 was the first version I used, and am now testing version 0.1.10a). This is the libusb homepage and you'll need the lib for your OS!
Basically, I'll use 4 calls for the sample application - Acquire the interface, release the interface, read data from the interface, and write data to the interface. The Read and Write use "bulk" mode, and I've heard that this won't work on later versions of the kernel.
To make use of the libusb interface, you'll need two files, a .c and a .h which provide the four calls I've mentioned - libusbahp.c and libusbahp.h. Include the .h in any source files where you need the function prototypes for the four calls.
| This Site Has Had 4189 hits since 7/21/2006 |