hi_mpi_isp_set_sns_slave_attr
The
The
Description
Sets the horizontal/vertical synchronization signal of the slave mode sensor.
The slave mode sensor needs this API to provide the horizontal synchronization (XHS) signal and vertical synchronization (XVS) signal. In this way, exposure can be performed and data can be read out under the control of the two signals. This API is used to configure the synchronization signal generation module so that the horizontal and vertical timings required by the sensor are output. This API is generally called in the sensor library.
Prototype
hi_s32 hi_mpi_isp_set_sns_slave_attr(hi_slave_dev slave_dev, const hi_isp_slave_sns_sync* sns_sync)
Restrictions
Two binding relationships exist for the slave signal. First, the pipe is bound to the vsync. Second, different signal source slaves can be selected in the vsync. That is, different pipes or slave signal devices vsync can select different slave signal devices vsync or pipes.
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
slave_dev |
Input |
ID of the slave signal device. |
sns_sync |
Input |
Synchronization signal configuration. |
Returns
- 0: success
- Other values: failure. For details, see ISP System Control Return Codes.