3 * - By John Hodge (thePowersGang)
11 typedef struct sUSBDevice tUSBDevice;
12 typedef struct sUSBDriver tUSBDriver;
22 // TODO: Check class codes and provide other identifcation options
25 void (*Connected)(tUSBDevice *Dev);
26 void (*Disconnected)(tUSBDevice *Dev);
30 // 0: Bulk, 1: Control, 2: Interrupt
32 // Data availiable Callback
33 void (*Interrupt)(tUSBDevice *Dev, int Length, void *Data);
37 extern void *USB_GetDeviceDataPtr(tUSBDevice *Dev);
38 extern void USB_SetDeviceDataPtr(tUSBDevice *Dev, void *Ptr);
40 extern void USB_SendData(tUSBDevice *Dev, int Endpoint, int Length, void *Data);