HI_MIPI_SET_HS_MODE

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

x

Atlas training products

x

Description

Sets the lane distribution of the MIPI RX (invalid for the SLVS).

Prototype

#define HI_MIPI_SET_HS_MODE _IOW(HI_MIPI_IOC_MAGIC, 0x0b, lane_divide_mode_t)

Parameters

  • HI_MIPI_IOC_MAGIC: magic number of the MIPI RX ioctl command.
    #define HI_MIPI_IOC_MAGIC 'm'
  • 0x0b: indicates the command word function and sets the lane distribution mode of the MIPI RX.
  • lane_divide_mode_t: lane distribution mode of the MIPI RX.

Returns

  • 0: success
  • -1: failure

Restrictions

  • After this command is executed, the system resets and deasserts the reset on the MIPI RX subsystem. Therefore, this command must be called before other commands. Otherwise, the configurations of other commands will be reset.
  • When multiple sensor inputs are connected, you are advised to set the lane distribution mode based on the hardware connection during initialization. This command cannot be used during subsequent multi-sensor capture. Otherwise, other configurations before this command will be reset.