hi_isp_i2c_data

Description

Defines I2C data parameters.

Prototype

typedef struct {
    hi_bool update;        /* RW; Range: [0x0, 0x1]; Format:1.0;
                              HI_TRUE: The sensor registers are written,
                              HI_FALSE: The sensor registers are not written */
    hi_u8   delay_frm_num; /* RW; Number of delayed frames for the sensor register */
    hi_u8   int_pos;       /* RW;Position where the configuration of the sensor register takes effect */
    hi_u8   dev_addr;      /* RW;Sensor device address */
    hi_u32  reg_addr;      /* RW;Sensor register address */
    hi_u32  addr_byte_num; /* RW;Bit width of the sensor register address */
    hi_u32  data;          /* RW;Sensor register data */
    hi_u32  data_byte_num; /* RW;Bit width of sensor register data */
} hi_isp_i2c_data;

Members

Member

Description

update

Whether the data configures the sensor register.

HI_TRUE: The sensor register is configured.

HI_FALSE: The sensor register is not configured.

delay_frame_num

Number of delayed frames for the sensor register. This variable is used to ensure that the exposure time and gain take effect at the same time.

interrupt_pos

Position where the configuration of the sensor register takes effect.

  • When the register is set to 0x0, the configuration of the sensor register takes effect at the short frame start interrupt. When the register is set to 0x1, the configuration of the sensor register takes effect at the short frame end interrupt.
  • 0x10 indicates that the configuration of the sensor register takes effect at the short frame start interrupt. 0x11 indicates that the configuration of the sensor register takes effect at the short frame end interrupt.
  • When the c register is set to 0x20, the configuration of the sensor register takes effect at the medium frame start interrupt. When the register is set to 0x21, the configuration of the sensor register takes effect at the medium frame end interrupt.
  • When the register is set to 0x30, the configuration of the sensor register takes effect at the long frame start interrupt. When the register is set to 0x31, the configuration of the sensor register takes effect at the long frame end interrupt.

dev_addr

Sensor device address

reg_addr

Sensor register address

addr_byte_num

Bit width of the sensor register address

data

Sensor register data

data_byte_num

Data width of the sensor register