I want to receive data in the way like described in the Driver API:
Code: Select all
if(usbInterruptIsReady()){ // only if previous data was sent
uchar *p;
uchar len = getInterruptData(&p); // obtain chunk of max 8 bytes
if(len > 0) // only send if we have data
usbSetInterrupt(p, len);
}
Unfortunately I can not find the getInterruptData() method. I do not see how I should implement it by myself.
What I want to do is reading the received data in any way that usb_bulk_msg() on host side returns 0.
Thanks in advance,
Tommy