Page 1 of 1

Control OUT data

Posted: Thu Jan 24, 2008 10:32 pm
by eric_j
When receiving data from the host using the control endpoint, it did not work until I put in a statement that sets the local variable 'flags' to 0 so that the usbFunctionWrite is actually called. How is this intended to be done?

Posted: Tue Jan 29, 2008 1:06 pm
by christian
You must return -1 (0xff) in usbFunctionSetup() to inform the driver that you want to receive the data via usbFunctionWrite(). See the documentation in usbdrv.h.