correct way to tell UVC that FX3 cannot start streaming? | Cypress Semiconductor
correct way to tell UVC that FX3 cannot start streaming?
I am trying to implement a security feature in a camera where if a switch is on, the camera will not allow a UVC stream to start.
I can detect the switch with an FX3 GPIO but I'm not sure how to correctly respond to a UVC start streaming request when I do not want to start streaming. I tried sending CyU3PUsbStall(0, CyTrue, CyFalse) but this just causes the PC webcam application to hang.
What is the correct way for the FX3 to signal the PC that a stream request cannot be fulfilled?