marinero_joven-ga,
There is no seperate API for reading/writing to a USB device.
Instead, you use the CreateFile/ReadFile/WriteFile routines. However,
in order to do this, you must have a "Device Driver" for the device.
USB has four seperate ways of "Talking". These are called "Control
Transfers", "Interrupt Transfers", "Bulk Transfers", and "Isochronous
Transfers". All devices use Control Transfers to connect to the
computer. The devices announce their device type, and Windows then
searches for the installed driver. The driver connects to the device
and presents a "Device Name" for you to Open().
If your device is a common one, go to the manufacturers site to
download the driver. If you are working with a custom device, you
will need to speak with whoever programmed the firmware to find out
about the driver. If you are the firmware programmer, you need to
spend some time learning about the protocol.
I'd be happy to answer specific questions. |