- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to enable all the camera control listed in the attached image.what all changes I have to do in the fx3 firmware.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In this response, I will take the procedures to enable brightness control as an example.
- Enable the bmControl bit in the corresponding descriptor.
- 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.