You can refer to firmware with AN75779. This firmware is for FX3 but you need to make similar changes to CX3 firmware
When you un-comment #define UVC_PTZ_SUPPORT, it will enable the settings for Pan, Zoom and Tilt
As you are working on USB 2.0, you need to change the descriptors const uint8_t CyFxUSBHSConfigDscr
- In the Input (Camera) Terminal you need to put the values in the fields related to focal length according to your sensor (refer attachment). Also need to enable the absolute zoom bit (D9)/ relative zoom bit (D10) in the bmcontrol field
In the application you need to handle the GET/SET UVC requests as handled in UVCHandleCameraTerminalRqts (AN75779)
Please refer to camera_ptzcontrol.c and ptz_control.h files for you reference in firmware AN75779.
UVC_Descriptors_zoom.PNG 36.9 K