3 * - By John Hodge (thePowersGang)
11 typedef struct sUSBDevice tUSBDevice;
12 typedef struct sUSBDriver tUSBDriver;
22 // 23:16 - Interface Class
23 // 15:8 - Interface Sub Class
24 // 7:0 - Interface Protocol
28 void (*Connected)(tUSBDevice *Dev);
29 void (*Disconnected)(tUSBDevice *Dev);
33 // 0: Bulk, 1: Control, 2: Interrupt
35 // Data availiable Callback
36 void (*Interrupt)(tUSBDevice *Dev, int Length, void *Data);
40 extern void *USB_GetDeviceDataPtr(tUSBDevice *Dev);
41 extern void USB_SetDeviceDataPtr(tUSBDevice *Dev, void *Ptr);
43 extern void USB_SendData(tUSBDevice *Dev, int Endpoint, int Length, void *Data);