HI_MIPI_RESET_SENSOR

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

☓

Atlas A3 training products/Atlas A3 inference products

☓

Atlas A2 training products/Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

√

Atlas inference products

☓

Atlas training products

☓

Function

Resets a sensor.

Definition

#define HI_MIPI_RESET_SENSOR _IOW(HI_MIPI_IOC_MAGIC, 0x05, sns_rst_source_t)

Parameters

  • HI_MIPI_IOC_MAGIC: indicates the magic number of MIPI RX ioctl commands.
    #define HI_MIPI_IOC_MAGIC 'm'
  • 0x05: indicates the command identifier function and resets the sensor.
  • sns_rst_source_t: indicates the ID of the sensor reset signal cable.

Returns

  • 0: success
  • -1: failure

Precautions

Some sensors have requirements on the reset time. You can add a delay before the reset is deasserted.