Cy API doesn't guarantee exclusivity on attached FX3 devices ? | Cypress Semiconductor
Cy API doesn't guarantee exclusivity on attached FX3 devices ?
Hi, I've the following issue:
i modified slightly the Cypress provided Streamer (CPP version) example in order to start my streaming device ( High Bandwidth bulk in).
I don't have any problem as long as there is 1 only device attached to the host AND 1 only instance of the streamer running on the same host. If I start 2 instances of the Streamer application they are both able to open the same FX3 device and to communicate with if (which obviously creates a lot of inconsistencies).
I would expect that that a USBDevice can be opened only once and that it isn't possible (by design) that an other program starts to "interfere" with a device currently in use. Isn't this the case for CyAPI.lib ?
Which kind of mechanism has been foreseen by Cypress to protect a opened and used FX3 Device ?
How do I make the device access exclusive ?