FX2 timeout question | Cypress Semiconductor
FX2 timeout question
I have a FX2 device running in bulk mode and I'm streaming data from it using the BeginDataXfer -> WaitForXfer -> FinishDataXfer sequence. For continous data it works very well and I'm able to stream 38MBytes/sec with no problems. The application requires data streaming to stop and then resume and when the device stops sending I occasionally lose data and I'm not sure why.
I'm trying to understand what happens when less data is available than that requested by the call to BeginDataXfer. I know WaitForXfer will wait up to x ms for the overlapped event to be signalled but does the read request, initiated by BeginDataXfer, continue until all the requested data is received or is the driver somehow notified that the request should terminated?