mipi_dev_attr_t

Description

Defines the MIPI device attributes.

Definition

typedef struct {
    data_type_t input_data_type;  /* data type: 8/10/12/14/16 bit */
    mipi_wdr_mode_t wdr_mode;     /* MIPI WDR mode */
    short lane_id[MIPI_LANE_NUM]; /* lane_id: -1 - disable */
    union {
        short data_type[WDR_VC_NUM]; /* attribute of MIPI WDR mode. AUTO:mipi_wdr_mode_t:HI_MIPI_WDR_MODE_DT; */
    };
} mipi_dev_attr_t;

Members

Member

Description

input_data_type

Data type for transmission.

lane_id

Mapping between the TX end (sensor) and RX end (MIPI Rx) lanes. –1 indicates an unused lane.

The MIPI_LANE_NUM value is 8.

wdr_mode

MIPI WDR mode.

data_type

This parameter corresponds to data of different exposure lengths, and needs to be configured when wdr_mode is HI_MIPI_WDR_MODE_DT.

The WDR_VC_NUM value is 4.

Precautions

The Atlas 200I/500 A2 inference products has eight lanes. If the working mode is 2+2+2+2, device 0 uses lane0 and lane2. Therefore, lane_id is set to {0, 2, -1, -1, -1, -1, -1, -1}.