Control Endpoint Usage for settings etc? | Cypress Semiconductor
Control Endpoint Usage for settings etc?
On the advice of a user here http://www.cypress.com/?app=forum&id=167&rID=89796 I have been advised to use the control endpoint to send settings messages to the FX3 controller. The concept is simple enough, I want to send different types of messages, have the control endpoint on the FX3 copy them into an appropriate buffer and raise a flag.
1)Ideally I would like to be able to test this in the USB Control Centre, which I hope is possible using the 'Data Transfers' tab?
2) How do I register the control endpoint handler in firmware? Right now I am trying to work with SlaveFifoAsync since I eventually need to stream data from the board to the PC.
3) If anyone could throw together a simple example of how to say send a 512 byte buffer to the control endpoint, and how to catch it there, I would be very appreciative.
I'm sorry to ask such a basic question, but scanning this forum for the first 100 instances of the word 'control' didn't yield anything conclusive. If there is an application note that covers this, please let me know.