HI_MIPI_SET_DEV_ATTR

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

Sets the attributes of the MIPI RX, SLVS, and parallel port devices.

Definition

#define HI_MIPI_SET_DEV_ATTR _IOW(HI_MIPI_IOC_MAGIC, 0x01, combo_dev_attr_t)

Parameters

  • HI_MIPI_IOC_MAGIC: indicates the magic number of MIPI RX ioctl commands.
    #define HI_MIPI_IOC_MAGIC 'm'
  • 0x01: indicates the command identifier function and sets the attributes of the MIPI RX, SLVS, and parallel port devices.
  • combo_dev_attr_t: indicates combo device attributes.

Returns

  • 0: success
  • -1: failure

Restrictions

Operations on the sensor reset line or clock line will affect all sensors connected to them.