HI_MIPI_CONFIG_SENSOR_CLOCK
The
The
Description
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 requires the Ascend AI Processor to provide a clock, this command needs to be called in the process to configure the clock configuration information input to the sensor.
Returns
- 0: success
- -1: failure
Considerations
Before configuring the sensor clock, run the HI_MIPI_DISABLE_SENSOR_CLOCK command to disable the sensor clock.
Parent topic: MIPI RX ioctl Command Words