lvds_dev_attr_t
Description
Defines attributes of the LVDS, sub-LVDS, or HiSPi device.
Prototype
typedef struct {
data_type_t input_data_type; /* data type: 8/10/12/14 bit */
lvds_wdr_mode_t wdr_mode; /* WDR mode */
lvds_sync_mode_t sync_mode; /* sync mode: SOF, SAV */
lvds_vsync_attr_t vsync_attr; /* normal, share, hconnect */
lvds_fid_attr_t fid_attr; /* frame identification code */
lvds_bit_endian_t data_endian; /* data endian: little/big */
lvds_bit_endian_t sync_code_endian; /* sync code endian: little/big */
short lane_id[LVDS_LANE_NUM]; /* lane_id: -1 - disable */
/* each vc has 4 params, sync_code[i]:
sync_mode is SYNC_MODE_SOF: SOF, EOF, SOL, EOL
sync_mode is SYNC_MODE_SAV: invalid sav, invalid eav, valid sav, valid eav */
unsigned short sync_code[LVDS_LANE_NUM][WDR_VC_NUM][SYNC_CODE_NUM];
} lvds_dev_attr_t;
Members
Member |
Description |
|---|---|
input_data_type |
Data type for transmission |
wdr_mode |
WDR mode |
sync_mode |
LVDS sync mode |
vsync_ attr |
VSYNC type. It needs to be configured when wdr_mod is DOL mode and sync_mode is LVDS_SYNC_MODE_SAV. |
fid_attr |
Frame ID type. It needs to be configured when wdr_mod is DOL mode and sync_mode is LVDS_SYNC_MODE_SAV. |
data_endian |
Data endian mode. |
sync_code_endian |
Sync code endian mode. |
lane_id |
Mapping between the TX end (sensor) and RX end (MIPI RX) lanes. -1 indicates unused lane. The LVDS_LANE_NUM value is 8. |
sync_code |
There are four sync codes in total. The first three sync codes are all 1s, all 0s, and all 0s, which do not need to be configured. You only need to configure the fourth sync code. Each lane has 16 configuration items, that is, four rows by four columns. Each row represents a virtual channel. In WDR mode, the four rows need to be configured with different sync codes based on the TX end. In linear mode, the four rows need to be configured with the same sync code. According to different sync modes, the sync codes in the four columns respectively indicate the sync codes of the SOF, EOF, SOL, and EOL or the sync codes of invalid SAV, invalid EAV, valid SAV, and valid EAV. The LVDS_LANE_NUM value is 8. The WDR_VC_NUM value is 4. The SYNC_CODE_NUM value is 4. |
Considerations
When this structure is used, the LVDS lane synchronization code arrives synchronously.