commandline/usbdrv.h

Go to the documentation of this file.
00001 
00010 #include <stdio.h>
00011 #include <stdlib.h>
00012 #include <string.h>
00013 #include <usb.h>                /* this is libusb, see http://libusb.sourceforge.net/ */
00014 
00015 #include "usbservo.h"
00016 
00017 #define USBDEV_SHARED_VENDOR    0x16C0  
00018 #define USBDEV_SHARED_PRODUCT   0x05DC  
00020 /* These are error codes for the communication via USB. */
00021 #define USB_ERROR_NOTFOUND  1 
00022 #define USB_ERROR_ACCESS    2 
00023 #define USB_ERROR_IO        3 
00034 int usbGetStringAscii(usb_dev_handle * dev, int index, int langid, char *buf, int buflen);
00035 
00046 int usbOpenDevice(usb_dev_handle ** device, int vendor, char *vendorName, int product, char *productName);
00047 
00056 int dev_test(usb_dev_handle * handle, int argc, char **argv);
00057 
00064 int dev_set(usb_dev_handle * handle, int argc, char **argv);
00065 
00073 int dev_status(usb_dev_handle * handle, int argc, char **argv);
00074 

Generated on Sat Oct 28 14:48:23 2006 for USB-Servo by  doxygen 1.4.7