hi_isp_sns_regs_info
Description
Defines the sensor register information.
Prototype
typedef struct {
hi_isp_sns_type sns_type;
hi_u32 reg_num;
hi_u8 cfg2_valid_delay_max;
hi_u32 exp_distance[HI_ISP_WDR_MAX_FRAME_NUM - 1]
hi_isp_sns_commbus com_bus;
union {
hi_isp_i2c_data i2c_data[HI_ISP_MAX_SNS_REGS];
hi_isp_ssp_data ssp_data[HI_ISP_MAX_SNS_REGS];
};
struct {
hi_bool update;
hi_u8 delay_frame_num;
hi_u32 slave_vs_time;
hi_u32 slave_bind_dev;
} slv_sync;
hi_bool config;
} hi_isp_sns_regs_info;
Members
Member |
Description |
|
|---|---|---|
sns_type |
Type of the communication interface between the sensor and the ISP |
|
reg_num |
Number of registers to be configured when the exposure result is written to the sensor. Dynamic change is not supported. |
|
cfg2_valid_delay_max |
Maximum number of delayed frames from the time when all sensor registers are configured to the time when the registers take effect. This parameter is used to ensure the synchronization between sensor registers and ISP registers. Generally, the exposure time register of the CMOS sensor has the maximum delay, one or two frames. Therefore, the value is 1 or 2. |
|
exp_distance |
In WDR mode, the sensor exposes the line difference between the long frame and the medium frame, the line difference between the medium frame and the short frame, and the line difference between the short frame and the short frame. This attribute is reserved and is not supported currently. |
|
com_bus |
ID of the device bound to the sensor |
|
i2c_data |
I2C data parameters. |
|
ssp_data |
SSP data parameter |
|
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. |
|
slave_vs_time |
XVS signal cycle (unit: cycle of the sensor input clock) |
|
slave_bind_dev |
Relationship between the slave device ID and vi_pipe |
|
config |
Data configuration completion flag of the sensor register.
|
|
Considerations
None