Sensor Interface

The following code block shows the data structure for the sensor interface structure.
typedef struct _SENSOR_INTFC {
    STF_U8 u8DataInterface;
    STF_U8 u8I2cChannel;
    STF_U8 u8I2cSlaveAddrbit;
    STF_U8 u8I2cRegAddrBit;
    STF_U8 u8I2cRegDataBit;
    STF_U16 u16I2cSlaveAddr;
    STF_S16 s16PowerGpioId;
    STF_U16 u16PowerGpioInitLevel;
    STF_S16 s16ResetGpioId;
    STF_U16 u16ResetGpioInitLevel;
    STF_U16 u16ResetIntervalTime;
    STF_U8 u8SensorPolarity;
} SENSOR_INTFC, *PSENSOR_INTFC;
The following table describes the fields in the above code block.
Table 1. DRM Buffer Field Description
Field Description
u8DataInterface Indicate which data interface will be used. 0: DVP, 1: MIPI
u8I2cChannel Indicate which I2C channel will be used. Range: 0 - 3
u8I2cSlaveAddrbit1 Indicate the slave address bit. 0: 7 bits, 1: 10 bits. Not used in the V4L2 driver
u8I2cRegAddrBit1 Indicate the sensor register address bit. 0: 8 bits, 1: 16 bits. Not used in the V4L2 driver
u8I2cRegDataBit1 Indicate the sensor register data bit. 0: 8 bits, 1: 16 bits. Not used in the V4L2 driver
u16I2cSlaveAddr Indicate the slave address of sensor.
s16PowerGpioId1 Power control pin. Not used in the V4L2 driver
u16PowerGpioInitLevel1 Power control pin initialize value. Not used in the V4L2 driver
s16ResetGpioId1 Reset pin. Not used in the V4L2 driver
u16ResetGpioInitLevel1 Reset pin initialize value. Not used in the V4L2 driver
u16ResetIntervalTime1 Reset pin hold timing. Not used in the V4L2 driver
u8SensorPolarity Sensor polarity status
Note:
  1. The field items are for proprietary driver only.