Lines Matching refs:usb
19 #include <Usb.h>
63 usb.ctrlReq(addr, 0,
73 usb.ctrlReq(addr, 0,
100 usb.ctrlReq(addr, 0,
106 while (usb.getUsbTaskState() != USB_DETACHED_SUBSTATE_WAIT_FOR_DEVICE) {
108 usb.Task();
121 err = usb.getConfDescr(addr, 0, 4, 0, (char *)descBuff);
135 err = usb.getConfDescr(addr, 0, len, 0, (char *)descBuff);
212 epRecord[0] = *(usb.getDevTableEntry(0,0));
213 usb.setDevTableEntry(1, epRecord);
215 err = usb.setConf( 1, 0, 1 );
221 usb.setUsbTaskState( USB_STATE_RUNNING );
232 usb.Task();
235 usb.getUsbTaskState() >= USB_STATE_CONFIGURING &&
236 usb.getUsbTaskState() != USB_STATE_RUNNING) {
240 err = usb.getDevDescr(1, 0, 0x12, (char *) devDesc);
254 } else if (usb.getUsbTaskState() == USB_DETACHED_SUBSTATE_WAIT_FOR_DEVICE) {
265 return usb.newInTransfer(1, in, len, (char *)buff, nakLimit);
270 usb.outTransfer(1, out, len, (char *)buff);