slvs_dev_attr_t

Description

Defines the attributes of the SLVS device.

Prototype

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];   /* lane_id: -1 - disable */
    slvs_err_check_mode_t err_check_mode;           /* ECC CRC mode */
} slvs_dev_attr_t;

Members

Member

Description

input_data_type

Data type for transmission

wdr_mode

WDR mode

lane_rate

SLVS lane rate.

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.

Considerations

  • 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.
  • Lane 0–lane 7 are available for SLVS devices 0 and 1. The lanes of two devices cannot overlap.