Bulk-In endpoints

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
tommy

Bulk-In endpoints

Post by tommy » Tue Nov 01, 2011 10:07 pm

Hi, I want to use Bulk-In endpoints because I think its the compatible counterpart to Linux' usb_bulk_msg().
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

Post Reply