How do I control when the Status Stage Returns when using CyU3PUsbGetEP0Data | Cypress Semiconductor
How do I control when the Status Stage Returns when using CyU3PUsbGetEP0Data
I am sending a Setup Command with a data packet which the FX3 needs to process. It could take many many milliseconds to complete processing the data. After the processing is done, I arm some of the Data EPs. However, I am finding that after I read all of the data payload from the control transfer, it immediatly sends the status stage on the Control EP, but before I have processed all of the data(I see this in the documentation as well). Hence the PC starts sending data before I am ready.
How do I control when the FX3 sends back the status stage? I would like to read all 16 extra bytes of data, process the data and then have the FX3 send the status stage back.