How to enable the Camera Terminal specific UVC control selector codes defined in the UVC specification?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaAr_2545856
Level 4
Level 4
5 sign-ins 5 solutions authored First solution authored

I want to enable all the camera control listed in the attached image.what all changes I have to do in the fx3 firmware.video-parameters.PNG

0 Likes
1 Solution
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

In this response, I will take the procedures to enable brightness control as an example.

  • Enable the bmControl bit in the corresponding descriptor.

BaiduShurufa_2018-8-15_15-50-39.bmp

  • Add the handle function in USBSetupCB(in the switch case statement related to control interface)
  • Create a user thread(EP0 thread in this example) to handle the event related to control interface.

            if (eventFlag & CX3_UVC_VIDEO_CONTROL_REQUEST_EVENT)

            {

                switch ((wIndex >> 8))

                {

                    case CX3_UVC_PROCESSING_UNIT_ID:

                        UVCHandleProcessingUnitRqts ();

                        break;

//                    case CY_FX_UVC_CAMERA_TERMINAL_ID:

//                        UVCHandleCameraTerminalRqts ();

//                        break;

//

//                    case CY_FX_UVC_INTERFACE_CTRL:

//                        UVCHandleInterfaceCtrlRqts ();

//                        break;

//

//                    case CY_FX_UVC_EXTENSION_UNIT_ID:

//                        UVCHandleExtensionUnitRqts ();

//                        break;

                    default:

                        /* Unsupported request. Fail by stalling the control endpoint. */

                        CyU3PUsbStall (0, CyTrue, CyFalse);

                        break;

                }

            }

  • Create the function UVCHandleProcessingUnitRqts to handle all the supported requests.

You could check the attachment for detailed information.  I am afriad that I miss something above.

View solution in original post

0 Likes
5 Replies