3 * - By John Hodge (thePowersGang)
11 typedef struct sUSBInterface tUSBInterface;
12 typedef struct sUSBDriver tUSBDriver;
22 int MatchType; // 0: Interface, 1: Device, 2: Vendor
25 // 23:16 - Interface Class
26 // 15:8 - Interface Sub Class
27 // 7:0 - Interface Protocol
37 void (*Connected)(tUSBInterface *Dev);
38 void (*Disconnected)(tUSBInterface *Dev);
43 // NOTE: Top bit indicates the direction (1=Input)
45 // Data availiable Callback
46 void (*DataAvail)(tUSBInterface *Dev, int Length, void *Data);
50 extern void *USB_GetDeviceDataPtr(tUSBInterface *Dev);
51 extern void USB_SetDeviceDataPtr(tUSBInterface *Dev, void *Ptr);
53 extern void USB_SendData(tUSBInterface *Dev, int Endpoint, int Length, void *Data);