HI_MIPI_CONFIG_SENSOR_CLOCK
Applicable Products
Product |
Supported |
|---|---|
☓ |
|
☓ |
|
☓ |
|
√ |
|
☓ |
|
☓ |
Function
Configures the input clock frequency of the sensor.
Definition
#define HI_MIPI_CONFIG_SENSOR_CLOCK _IOW(HI_MIPI_IOC_MAGIC, 0x17, sns_clk_cfg_t)
Parameters
- HI_MIPI_IOC_MAGIC: indicates the magic number of MIPI RX ioctl commands.
#define HI_MIPI_IOC_MAGIC 'm'
- 0x17: indicates the command identifier function and configures the clock frequency input to the sensor.
- sns_clk_cfg_t: indicates the clock configuration input to the sensor in slave mode.
When the sensor works in slave mode or requires the 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
Precautions
Before configuring the sensor clock, use the HI_MIPI_DISABLE_SENSOR_CLOCK command identifier to disable the sensor clock.
Parent topic: MIPI RX Ioctl Command Identifiers