HI_MIPI_CONFIG_SENSOR_CLOCK
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
√ |
|
☓ |
|
☓ |
Functions
Configures the input clock frequency of the sensor.
Prototype
#define HI_MIPI_CONFIG_SENSOR_CLOCK _IOW(HI_MIPI_IOC_MAGIC, 0x17, sns_clk_cfg_t)
Parameters
- HI_MIPI_IOC_MAGIC: magic number of the MIPI RX ioctl command.
#define HI_MIPI_IOC_MAGIC 'm'
- 0x17: indicates the command word function and configures the clock frequency input to the sensor.
- sns_clk_cfg_t: clock configuration information input to the sensor in slave mode.
When the sensor works in slave mode or the AI processor needs to provide the clock for the sensor, this command needs to be called in the process to configure the clock configuration information input to the sensor.
Returns
- 0: success
- -1: failure
Precautions
Before configuring the sensor clock, you must use the HI_MIPI_DISABLE_SENSOR_CLOCK command word to disable the sensor clock.
Parent topic: MIPI RX ioctl Command Words