How to disable USB Receive (OUT) (response with NACK) for a while ?
I'm implementing USB CDC for my project.
In the USB callback function (CDC_Receive_HS), I copy the contents to a user's data array and exit the function. I process the received data in the main function. (not in USB interrupt routine)
What I want to do is not to receive any data while while the program is processing the data.
After data processing is done, re-enable the receiving.
(I think) the most proper way is to make USB engine response to OUT with NACK.
Is there a way to enable/disable "Response to OUT with NACK" ?
Is there more appropriate way ?
