13 void USB_RegisterHost(tUSBHost *HostDef, void *ControllerPtr)
18 int USB_int_SendSetupSetAddress(tUSBHost *Host, void *Ptr, int Address)
21 data[0] = 0; // bmRequestType
22 data[1] = 5; // SET_ADDRESS
23 data[2] = Address & 0x7F; // wValue (low)
24 data[3] = 0; // wValue (high)
25 data[4] = 0; // wLength
26 data[6] = 0; // wLength
28 // Addr 0:0, Data Toggle = 0, no interrupt
29 return Host->SendSETUP(Ptr, 0, 0, 0, FALSE, data, 8) == NULL;