is there a way to temporarily suspend the readings from the USB side? I explain better. In my application the PC reads every 5ms from the okBufferedPipeOut some data produced by a DSP. Once in a while, the reading is performed during the writing operation on the DSP side. In this situation, the PC receives only part of the data, and the message is corrupted.
At first, I was thinking to use the hi_busy signal on the controller (a clean solution :)), but I don’t really know anything about the signal and preliminary experiments didn’t work. The basic idea is to tell the USB controller to wait for few microseconds until the writing operation is complete. This should be done without generating further USB traffic from the PC to synchronize the operation. Any suggestion?