3 * - By John Hodge (thePowersGang)
12 #include "usb_lowlevel.h"
15 void USB_ReadDescriptor(tUSBInterface *Iface, int Type, int Index, int Length, void *Data);
16 void USB_Request(tUSBInterface *Iface, int Endpoint, int Type, int Req, int Value, int Index, int Len, void *Data);
21 void USB_ReadDescriptor(tUSBInterface *Iface, int Type, int Index, int Length, void *Data)
23 USB_int_ReadDescriptor(Iface->Dev, 0, Type, Index, Length, Data);
26 void USB_Request(tUSBInterface *Iface, int Endpoint, int Type, int Req, int Value, int Index, int Len, void *Data)
31 if(Endpoint < 0 || Endpoint >= Iface->nEndpoints)
34 // Get endpoint number
36 endpt = Iface->Endpoints[Endpoint-1].EndpointNum;
40 USB_int_Request(Iface->Dev->Host, Iface->Dev->Address, endpt, Type, Req, Value, Index, Len, Data);