slvs_dev_attr_t

Function

Defines the attributes of the SLVS device.

Definition

typedef struct {
    data_type_t           input_data_type;
    slvs_wdr_mode_t       wdr_mode;
    slvs_lane_rate_t      lane_rate;
    int                   sensor_valid_width;
    short                 lane_id[SLVS_LANE_NUM];
    slvs_err_check_mode_t err_check_mode;
} slvs_dev_attr_t;

Members

Member

Description

input_data_type

Data type for transmission. For details, see data_type_t.

wdr_mode

WDR mode. For details, see slvs_wdr_mode_t.

lane_rate

SLVS lane rate. For details, see slvs_lane_rate_t.

sensor_valid_width

Number of pixels in a row of data packets. Only the lower 14 bits are valid, which means that the maximum number of pixels is 16383.

lane_id

Mapping between the TX-end (sensor) lane and the RX-end (SLVS) lane. –1 indicates an unused lane.

The SLVS_LANE_NUM value is 8.

err_check_mode

SLVS CRC/ECC mode. The setting must match that for the sensor. For details, see slvs_err_check_mode_t.

Precautions

  • SLVS supports the linear mode and 2-in-1 WDR mode.
  • SLVS API is not restricted by the restrictions of HI_MIPI_SET_HS_MODE.
  • Lanes 0–7 are available for SLVS devices 0 and 1. The lanes of two devices cannot be the same.