Hello...
I just wonder if I understand correctly.
from usbFunctionSetup I can send data in any length (from static buffer) just need to assign usbMsgPtr to right place and return sizeof(Buffer). As I try seems to work. But in opposite side is not that easy as I understand.
If the data is only 4 bytes in wValue and wIndex then is near same (just need to use/copy that) BUT if data is longer (wLength<>0) then I just wonder if the use of usbFunctionWrite is mandatory or the data can be read within usbFunctionSetup.
Thanks