I have a question regarding usb buffer descriptor. I setup one bulk IN endpoint (with max. packet size 64 bytes) on my MCF52259. Now I want to send a stream of data through it. According to USB specs, DATA0/DATA1 are used for synchronization purposes only. Now, if I have set two buffers simultaneously in EVEN and ODD buffer descriptors for better throughput. With even buffer descriptor set to DATA0 and odd buffer descriptor set to DATA1.
If an error comes up on DATA0 or I have to send it again, then obviously I need to send it on DATA1. Then my question is that how would I maximize the throughput as I can't send the second buffer as the first one is not completed.