API GUIDE / MIPI DSI / LL
G32S10 MIPI DSI LL 接口
LL 层接口:LL 接口均为 static inline,直接访问具名寄存器字段,不执行实例、字段范围、FIFO 状态或时钟状态校验。
1. LL DSI host 接口规范
LL 接口均为 static inline,直接访问具名寄存器字段,不执行实例、字段范围、FIFO 状态或时钟状态校验。除 ll_dsi_is_instance() 外,调用者必须保证 dsix 为 MIPI_DSI。
1.0.1 ll_dsi_is_instance
static inline bool ll_dsi_is_instance(const dsi_regs_t *dsix);
功能说明:Check whether the register base is MIPI_DSI.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.2 ll_dsi_get_version
static inline uint32_t ll_dsi_get_version(const dsi_regs_t *dsix);
功能说明:VERSION (0x000).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.3 ll_dsi_set_power
static inline void ll_dsi_set_power(dsi_regs_t *dsix, bool enable);
功能说明:PWR_UP (0x004) -- SHUTDOWNZ.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to power up the DSI host, false to enter shutdown. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.4 ll_dsi_set_tx_escape_clk_division
static inline void ll_dsi_set_tx_escape_clk_division(dsi_regs_t *dsix, uint8_t divider);
功能说明:CLKMGR_CFG (0x008) -- TX_ESC_CLK_DIV.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
divider | uint8_t | 输入 | TX_ESC_CLK_DIV value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.5 ll_dsi_set_timeout_clk_division
static inline void ll_dsi_set_timeout_clk_division(dsi_regs_t *dsix, uint8_t divider);
功能说明:CLKMGR_CFG (0x008) -- TO_CLK_DIV.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
divider | uint8_t | 输入 | TO_CLK_DIV value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.6 ll_dsi_set_dpi_vcid
static inline void ll_dsi_set_dpi_vcid(dsi_regs_t *dsix, uint8_t vcid);
功能说明:DPI_VCID (0x00C) -- VCID.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
vcid | uint8_t | 输入 | DPI virtual channel ID, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.7 ll_dsi_set_generic_vcid
static inline void ll_dsi_set_generic_vcid(dsi_regs_t *dsix, uint8_t vcid);
功能说明:GEN_VCID (0x030) -- VCID.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
vcid | uint8_t | 输入 | Generic read virtual channel ID, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.8 ll_dsi_set_dpi_color_coding
static inline void ll_dsi_set_dpi_color_coding(dsi_regs_t *dsix, uint8_t color_code);
功能说明:DPI_COLOR_CODING (0x010) -- DPI_COLOR_CODING.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
color_code | uint8_t | 输入 | DPI color coding: 0/1/2=16-bit cfg1/2/3, 3/4=18-bit cfg1/2, |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.9 ll_dsi_set_dpi_18bpp_type
static inline void ll_dsi_set_dpi_18bpp_type(dsi_regs_t *dsix, bool loosely18);
功能说明:DPI_COLOR_CODING (0x010) -- LOOSELY18_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
loosely18 | bool | 输入 | true to enable loosely packed 18-bit mode, false to disable it. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.10 ll_dsi_set_dpi_de_pol
static inline void ll_dsi_set_dpi_de_pol(dsi_regs_t *dsix, bool active_low);
功能说明:DPI_CFG_POL (0x014) -- DATAEN_ACTIVE_LOW.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
active_low | bool | 输入 | true for active-low DATAEN, false for active-high DATAEN. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.11 ll_dsi_set_dpi_vs_pol
static inline void ll_dsi_set_dpi_vs_pol(dsi_regs_t *dsix, bool active_low);
功能说明:DPI_CFG_POL (0x014) -- VSYNC_ACTIVE_LOW.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
active_low | bool | 输入 | true for active-low VSYNC, false for active-high VSYNC. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.12 ll_dsi_set_dpi_hs_pol
static inline void ll_dsi_set_dpi_hs_pol(dsi_regs_t *dsix, bool active_low);
功能说明:DPI_CFG_POL (0x014) -- HSYNC_ACTIVE_LOW.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
active_low | bool | 输入 | true for active-low HSYNC, false for active-high HSYNC. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.13 ll_dsi_set_dpi_shutdown_pol
static inline void ll_dsi_set_dpi_shutdown_pol(dsi_regs_t *dsix, bool active_low);
功能说明:DPI_CFG_POL (0x014) -- SHUTD_ACTIVE_LOW.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
active_low | bool | 输入 | true for active-low SHUTD, false for active-high SHUTD. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.14 ll_dsi_set_dpi_colorm_pol
static inline void ll_dsi_set_dpi_colorm_pol(dsi_regs_t *dsix, bool active_low);
功能说明:DPI_CFG_POL (0x014) -- COLORM_ACTIVE_LOW.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
active_low | bool | 输入 | true for active-low COLORM, false for active-high COLORM. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.15 ll_dsi_set_lp_cmd_timing
static inline void ll_dsi_set_lp_cmd_timing(dsi_regs_t *dsix, uint8_t invact_time, uint8_t outvact_time);
功能说明:DPI_LP_CMD_TIM (0x018) -- LP command timing.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
invact_time | uint8_t | 输入 | INVACT_LPCMD_TIME value, range 0-255. |
outvact_time | uint8_t | 输入 | OUTVACT_LPCMD_TIME value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.16 ll_dsi_set_eotp_tx
static inline void ll_dsi_set_eotp_tx(dsi_regs_t *dsix, bool enable);
功能说明:PCKHDL_CFG (0x02C) -- EOTP_TX_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to transmit EoTp packets, false to disable EoTp TX. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.17 ll_dsi_set_eotp_rx
static inline void ll_dsi_set_eotp_rx(dsi_regs_t *dsix, bool enable);
功能说明:PCKHDL_CFG (0x02C) -- EOTP_RX_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to receive EoTp packets, false to disable EoTp RX. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.18 ll_dsi_set_bta
static inline void ll_dsi_set_bta(dsi_regs_t *dsix, bool enable);
功能说明:PCKHDL_CFG (0x02C) -- BTA_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable bus turn-around, false to disable it. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.19 ll_dsi_set_ecc_rx
static inline void ll_dsi_set_ecc_rx(dsi_regs_t *dsix, bool enable);
功能说明:PCKHDL_CFG (0x02C) -- ECC_RX_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable ECC checking/correction on RX packets. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.20 ll_dsi_set_crc_rx
static inline void ll_dsi_set_crc_rx(dsi_regs_t *dsix, bool enable);
功能说明:PCKHDL_CFG (0x02C) -- CRC_RX_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable CRC checking on RX packets. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.21 ll_dsi_set_mode
static inline void ll_dsi_set_mode(dsi_regs_t *dsix, uint32_t mode);
功能说明:MODE_CFG (0x034) -- CMD_VIDEO_MODE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
mode | uint32_t | 输入 | DSI_MODE_VIDEO or DSI_MODE_COMMAND. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.22 ll_dsi_set_video_mode_type
static inline void ll_dsi_set_video_mode_type(dsi_regs_t *dsix, uint8_t type);
功能说明:VID_MODE_CFG (0x038) -- VID_MODE_TYPE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
type | uint8_t | 输入 | Video mode type: 0=non-burst sync pulses, 1=non-burst sync events, |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.23 ll_dsi_set_video_lp_mask
static inline void ll_dsi_set_video_lp_mask(dsi_regs_t *dsix, uint32_t lp_mask);
功能说明:VID_MODE_CFG (0x038) -- video LP enable bits.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
lp_mask | uint32_t | 输入 | Bitmask of DSI_VID_MODE_CFG_LP_*_MASK and FRAME_BTA_ACK_EN. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.24 ll_dsi_set_video_pattern_enable
static inline void ll_dsi_set_video_pattern_enable(dsi_regs_t *dsix, bool enable);
功能说明:VID_MODE_CFG (0x038) -- VPG_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable video pattern generation, false to disable it. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.25 ll_dsi_set_video_pattern_mode
static inline void ll_dsi_set_video_pattern_mode(dsi_regs_t *dsix, bool ber_pattern);
功能说明:VID_MODE_CFG (0x038) -- VPG_MODE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
ber_pattern | bool | 输入 | true for BER pattern, false for color-bar pattern. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.26 ll_dsi_set_video_pattern_orientation
static inline void ll_dsi_set_video_pattern_orientation(dsi_regs_t *dsix, bool horizontal);
功能说明:VID_MODE_CFG (0x038) -- VPG_ORIENTATION.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
horizontal | bool | 输入 | true for horizontal pattern orientation, false for vertical orientation. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.27 ll_dsi_set_video_packet_size
static inline void ll_dsi_set_video_packet_size(dsi_regs_t *dsix, uint16_t pixels);
功能说明:VID_PKT_SIZE (0x03C) -- VID_PKT_SIZE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
pixels | uint16_t | 输入 | Video packet size in pixels, range 0-16383. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.28 ll_dsi_set_video_num_chunks
static inline void ll_dsi_set_video_num_chunks(dsi_regs_t *dsix, uint16_t num_chunks);
功能说明:VID_NUM_CHUNKS (0x040).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
num_chunks | uint16_t | 输入 | VID_NUM_CHUNKS value, range 0-8191. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.29 ll_dsi_set_video_null_size
static inline void ll_dsi_set_video_null_size(dsi_regs_t *dsix, uint16_t null_size);
功能说明:VID_NULL_SIZE (0x044).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
null_size | uint16_t | 输入 | VID_NULL_SIZE value, range 0-8191. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.30 ll_dsi_set_video_hsa_time
static inline void ll_dsi_set_video_hsa_time(dsi_regs_t *dsix, uint16_t hsa);
功能说明:VID_HSA_TIME (0x048).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
hsa | uint16_t | 输入 | VID_HSA_TIME value, range 0-4095. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.31 ll_dsi_set_video_hbp_time
static inline void ll_dsi_set_video_hbp_time(dsi_regs_t *dsix, uint16_t hbp);
功能说明:VID_HBP_TIME (0x04C).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
hbp | uint16_t | 输入 | VID_HBP_TIME value, range 0-4095. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.32 ll_dsi_set_video_hline_time
static inline void ll_dsi_set_video_hline_time(dsi_regs_t *dsix, uint16_t hline);
功能说明:VID_HLINE_TIME (0x050).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
hline | uint16_t | 输入 | VID_HLINE_TIME value, range 0-32767. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.33 ll_dsi_set_video_vsa_lines
static inline void ll_dsi_set_video_vsa_lines(dsi_regs_t *dsix, uint16_t vsa);
功能说明:VID_VSA_LINES (0x054).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
vsa | uint16_t | 输入 | VID_VSA_LINES value, range 0-1023. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.34 ll_dsi_set_video_vbp_lines
static inline void ll_dsi_set_video_vbp_lines(dsi_regs_t *dsix, uint16_t vbp);
功能说明:VID_VBP_LINES (0x058).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
vbp | uint16_t | 输入 | VID_VBP_LINES value, range 0-1023. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.35 ll_dsi_set_video_vfp_lines
static inline void ll_dsi_set_video_vfp_lines(dsi_regs_t *dsix, uint16_t vfp);
功能说明:VID_VFP_LINES (0x05C).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
vfp | uint16_t | 输入 | VID_VFP_LINES value, range 0-1023. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.36 ll_dsi_set_video_vactive_lines
static inline void ll_dsi_set_video_vactive_lines(dsi_regs_t *dsix, uint16_t vactive);
功能说明:VID_VACTIVE_LINES (0x060).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
vactive | uint16_t | 输入 | VID_VACTIVE_LINES value, range 0-16383. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.37 ll_dsi_set_edpi_cmd_size
static inline void ll_dsi_set_edpi_cmd_size(dsi_regs_t *dsix, uint16_t size);
功能说明:EDPI_CMD_SIZE (0x064).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
size | uint16_t | 输入 | EDPI_CMD_SIZE value, range 0-65535. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.38 ll_dsi_get_cmd_mode_config
static inline uint32_t ll_dsi_get_cmd_mode_config(const dsi_regs_t *dsix);
功能说明:CMD_MODE_CFG (0x068).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.39 ll_dsi_set_cmd_mode_config
static inline void ll_dsi_set_cmd_mode_config(dsi_regs_t *dsix, uint32_t value);
功能说明:CMD_MODE_CFG (0x068).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
value | uint32_t | 输入 | Bitmask of DSI_CMD_MODE_CFG_*_MASK. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.40 ll_dsi_pack_header
static inline uint32_t ll_dsi_pack_header(uint8_t data_type, uint8_t vcid, uint16_t word_count);
功能说明:Pack GEN_HDR (0x06C) fields.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
data_type | uint8_t | 输入 | Data type value, range 0-63. |
vcid | uint8_t | 输入 | Virtual channel ID, range 0-3. |
word_count | uint16_t | 输入 | Word count value, range 0-65535. |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.41 ll_dsi_write_header
static inline void ll_dsi_write_header(dsi_regs_t *dsix, uint32_t value);
功能说明:GEN_HDR (0x06C).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
value | uint32_t | 输入 | Packed header from ll_dsi_pack_header(). |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.42 ll_dsi_write_payload
static inline void ll_dsi_write_payload(dsi_regs_t *dsix, uint32_t value);
功能说明:GEN_PLD_DATA (0x070).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
value | uint32_t | 输入 | Payload word. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.43 ll_dsi_read_payload
static inline uint32_t ll_dsi_read_payload(const dsi_regs_t *dsix);
功能说明:GEN_PLD_DATA (0x070).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.44 ll_dsi_get_cmd_packet_status
static inline uint32_t ll_dsi_get_cmd_packet_status(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.45 ll_dsi_get_cmd_full
static inline bool ll_dsi_get_cmd_full(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074) -- GEN_CMD_FULL.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.46 ll_dsi_get_cmd_empty
static inline bool ll_dsi_get_cmd_empty(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074) -- GEN_CMD_EMPTY.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.47 ll_dsi_get_payload_write_full
static inline bool ll_dsi_get_payload_write_full(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074) -- GEN_PLD_W_FULL.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.48 ll_dsi_get_payload_write_empty
static inline bool ll_dsi_get_payload_write_empty(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074) -- GEN_PLD_WEMPTY.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.49 ll_dsi_get_payload_read_empty
static inline bool ll_dsi_get_payload_read_empty(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074) -- GEN_PLD_R_EMPTY.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.50 ll_dsi_get_payload_read_full
static inline bool ll_dsi_get_payload_read_full(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074) -- GEN_PLD_R_FULL.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.51 ll_dsi_get_read_command_busy
static inline bool ll_dsi_get_read_command_busy(const dsi_regs_t *dsix);
功能说明:CMD_PKT_STATUS (0x074) -- GEN_RD_CMD_BUSY.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果或对应寄存器字段的读取值。 |
1.0.52 ll_dsi_set_timeout_counters
static inline void ll_dsi_set_timeout_counters(dsi_regs_t *dsix, uint16_t hs_tx_timeout, uint16_t lp_rx_timeout);
功能说明:TO_CNT_CFG (0x078) -- HSTX_TO_CNT/LPRX_TO_CNT.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
hs_tx_timeout | uint16_t | 输入 | HSTX_TO_CNT value, range 0-65535. |
lp_rx_timeout | uint16_t | 输入 | LPRX_TO_CNT value, range 0-65535. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.53 ll_dsi_set_hs_read_timeout
static inline void ll_dsi_set_hs_read_timeout(dsi_regs_t *dsix, uint16_t count);
功能说明:HS_RD_TO_CNT (0x07C).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
count | uint16_t | 输入 | Timeout count, range 0-65535. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.54 ll_dsi_set_lp_read_timeout
static inline void ll_dsi_set_lp_read_timeout(dsi_regs_t *dsix, uint16_t count);
功能说明:LP_RD_TO_CNT (0x080).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
count | uint16_t | 输入 | Timeout count, range 0-65535. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.55 ll_dsi_set_hs_write_timeout
static inline void ll_dsi_set_hs_write_timeout(dsi_regs_t *dsix, uint16_t count, bool presp_to_mode);
功能说明:HS_WR_TO_CNT (0x084).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
count | uint16_t | 输入 | Timeout count, range 0-65535. |
presp_to_mode | bool | 输入 | true to enable peripheral-response timeout mode. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.56 ll_dsi_set_lp_write_timeout
static inline void ll_dsi_set_lp_write_timeout(dsi_regs_t *dsix, uint16_t count);
功能说明:LP_WR_TO_CNT (0x088).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
count | uint16_t | 输入 | Timeout count, range 0-65535. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.57 ll_dsi_set_bta_timeout
static inline void ll_dsi_set_bta_timeout(dsi_regs_t *dsix, uint16_t count);
功能说明:BTA_TO_CNT (0x08C).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
count | uint16_t | 输入 | Timeout count, range 0-65535. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.58 ll_dsi_set_3d_mode
static inline void ll_dsi_set_3d_mode(dsi_regs_t *dsix, uint8_t mode);
功能说明:SDF_3D (0x090) -- MODE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
mode | uint8_t | 输入 | 3D mode: 0=2D, 1=3D vertical direction, 2=3D horizontal direction, |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.59 ll_dsi_set_3d_format
static inline void ll_dsi_set_3d_format(dsi_regs_t *dsix, uint8_t format);
功能说明:SDF_3D (0x090) -- FORMAT.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
format | uint8_t | 输入 | 3D format: 0=line interleaved, 1=frame interleaved, |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.60 ll_dsi_set_3d_second_vsync
static inline void ll_dsi_set_3d_second_vsync(dsi_regs_t *dsix, bool enable);
功能说明:SDF_3D (0x090) -- SECOND_VSYNC.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to insert sync pulses between left/right frames. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.61 ll_dsi_set_3d_right_first
static inline void ll_dsi_set_3d_right_first(dsi_regs_t *dsix, bool enable);
功能说明:SDF_3D (0x090) -- RIGHT_FIRST.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to send the right-eye image first. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.62 ll_dsi_set_3d_config_send
static inline void ll_dsi_set_3d_config_send(dsi_regs_t *dsix, bool enable);
功能说明:SDF_3D (0x090) -- SEND_3D_CFG.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to include 3D control payload in each VSS packet. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.63 ll_dsi_set_dphy_hs_clk_enable
static inline void ll_dsi_set_dphy_hs_clk_enable(dsi_regs_t *dsix, bool enable);
功能说明:LPCLK_CTRL (0x094) -- PHY_TXREQUESTCLKHS.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to request HS clock transmission. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.64 ll_dsi_set_dphy_clk_auto_ctrl
static inline void ll_dsi_set_dphy_clk_auto_ctrl(dsi_regs_t *dsix, bool enable);
功能说明:LPCLK_CTRL (0x094) -- AUTO_CLKLANE_CTRL.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable automatic clock-lane control. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.65 ll_dsi_set_dphy_clk_lp2hs_time
static inline void ll_dsi_set_dphy_clk_lp2hs_time(dsi_regs_t *dsix, uint16_t time);
功能说明:PHY_TMR_LPCLK_CFG (0x098) -- CLKLP2HS_TIME.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
time | uint16_t | 输入 | CLKLP2HS_TIME value, range 0-1023. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.66 ll_dsi_set_dphy_clk_hs2lp_time
static inline void ll_dsi_set_dphy_clk_hs2lp_time(dsi_regs_t *dsix, uint16_t time);
功能说明:PHY_TMR_LPCLK_CFG (0x098) -- CLKHS2LP_TIME.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
time | uint16_t | 输入 | CLKHS2LP_TIME value, range 0-1023. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.67 ll_dsi_set_dphy_bta_time
static inline void ll_dsi_set_dphy_bta_time(dsi_regs_t *dsix, uint16_t time);
功能说明:PHY_TMR_CFG (0x09C) -- MAX_RD_TIME.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
time | uint16_t | 输入 | MAX_RD_TIME value, range 0-32767. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.68 ll_dsi_set_dphy_lp2hs_time
static inline void ll_dsi_set_dphy_lp2hs_time(dsi_regs_t *dsix, uint8_t time);
功能说明:PHY_TMR_CFG (0x09C) -- PHY_LP2HS_TIME.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
time | uint8_t | 输入 | PHY_LP2HS_TIME value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.69 ll_dsi_set_dphy_hs2lp_time
static inline void ll_dsi_set_dphy_hs2lp_time(dsi_regs_t *dsix, uint8_t time);
功能说明:PHY_TMR_CFG (0x09C) -- PHY_HS2LP_TIME.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
time | uint8_t | 输入 | PHY_HS2LP_TIME value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.70 ll_dsi_set_dphy_ana_state
static inline void ll_dsi_set_dphy_ana_state(dsi_regs_t *dsix, bool enable);
功能说明:PHY_RSTZ (0x0A0) -- SHUTDOWNZ.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to release PHY analog shutdown. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.71 ll_dsi_set_dphy_dig_state
static inline void ll_dsi_set_dphy_dig_state(dsi_regs_t *dsix, bool enable);
功能说明:PHY_RSTZ (0x0A0) -- RSTZ.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to release PHY digital reset. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.72 ll_dsi_set_dphy_clk_enable
static inline void ll_dsi_set_dphy_clk_enable(dsi_regs_t *dsix, bool enable);
功能说明:PHY_RSTZ (0x0A0) -- ENABLECLK.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable the PHY clock. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.73 ll_dsi_set_dphy_force_pll
static inline void ll_dsi_set_dphy_force_pll(dsi_regs_t *dsix, bool enable);
功能说明:PHY_RSTZ (0x0A0) -- FORCEPLL.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to force the PHY PLL on. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.74 ll_dsi_set_dphy_lane_count
static inline void ll_dsi_set_dphy_lane_count(dsi_regs_t *dsix, uint8_t lane_count);
功能说明:PHY_IF_CFG (0x0A4) -- N_LANES.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
lane_count | uint8_t | 输入 | Number of data lanes, range 1-2. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.75 ll_dsi_set_dphy_stop_wait_time
static inline void ll_dsi_set_dphy_stop_wait_time(dsi_regs_t *dsix, uint8_t wait_time);
功能说明:PHY_IF_CFG (0x0A4) -- PHY_STOP_WAIT_TIME.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
wait_time | uint8_t | 输入 | STOP_WAIT_TIME value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.76 ll_dsi_set_dphy_ulps_clk_request
static inline void ll_dsi_set_dphy_ulps_clk_request(dsi_regs_t *dsix, bool enable);
功能说明:PHY_ULPS_CTRL (0x0A8) -- TXREQULPSCLK.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to request clock-lane ULPS entry. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.77 ll_dsi_set_dphy_ulps_clk_exit
static inline void ll_dsi_set_dphy_ulps_clk_exit(dsi_regs_t *dsix, bool enable);
功能说明:PHY_ULPS_CTRL (0x0A8) -- TXEXITULPSCLK.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to request clock-lane ULPS exit. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.78 ll_dsi_set_dphy_ulps_lane_request
static inline void ll_dsi_set_dphy_ulps_lane_request(dsi_regs_t *dsix, bool enable);
功能说明:PHY_ULPS_CTRL (0x0A8) -- TXREQULPSLAN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to request data-lane ULPS entry. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.79 ll_dsi_set_dphy_ulps_lane_exit
static inline void ll_dsi_set_dphy_ulps_lane_exit(dsi_regs_t *dsix, bool enable);
功能说明:PHY_ULPS_CTRL (0x0A8) -- TXEXITULPSLAN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to request data-lane ULPS exit. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.80 ll_dsi_set_dphy_ulps_ctrl
static inline void ll_dsi_set_dphy_ulps_ctrl(dsi_regs_t *dsix, uint32_t mask);
功能说明:PHY_ULPS_CTRL (0x0A8).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
mask | uint32_t | 输入 | Bitmask of DSI_PHY_ULPS_CTRL_*_MASK. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.81 ll_dsi_set_dphy_tx_triggers
static inline void ll_dsi_set_dphy_tx_triggers(dsi_regs_t *dsix, uint8_t triggers);
功能说明:PHY_TX_TRIGGERS (0x0AC).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
triggers | uint8_t | 输入 | PHY_TX_TRIGGERS value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.82 ll_dsi_get_dphy_status
static inline uint32_t ll_dsi_get_dphy_status(const dsi_regs_t *dsix);
功能说明:PHY_STATUS (0x0B0).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.83 ll_dsi_phy_test_reset
static inline void ll_dsi_phy_test_reset(dsi_regs_t *dsix, bool reset);
功能说明:PHY_TST_CTRL0 (0x0B4) -- TESTCLR.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
reset | bool | 输入 | true to assert PHY test reset, false to release it. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.84 ll_dsi_phy_test_clock
static inline void ll_dsi_phy_test_clock(dsi_regs_t *dsix, bool clock);
功能说明:PHY_TST_CTRL0 (0x0B4) -- TESTCLK.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
clock | bool | 输入 | true to drive TESTCLK high, false to drive it low. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.85 ll_dsi_phy_test_enable
static inline void ll_dsi_phy_test_enable(dsi_regs_t *dsix, bool enable);
功能说明:PHY_TST_CTRL1 (0x0B8) -- TESTEN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable PHY test access. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.86 ll_dsi_phy_test_write_data
static inline void ll_dsi_phy_test_write_data(dsi_regs_t *dsix, uint8_t data);
功能说明:PHY_TST_CTRL1 (0x0B8) -- TESTDIN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
data | uint8_t | 输入 | TESTDIN value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.87 ll_dsi_phy_test_read_data
static inline uint8_t ll_dsi_phy_test_read_data(const dsi_regs_t *dsix);
功能说明:PHY_TST_CTRL1 (0x0B8) -- TESTDOUT.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint8_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.88 ll_dsi_get_irq_status0
static inline uint32_t ll_dsi_get_irq_status0(const dsi_regs_t *dsix);
功能说明:INT_ST0 (0x0BC).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.89 ll_dsi_get_irq_status1
static inline uint32_t ll_dsi_get_irq_status1(const dsi_regs_t *dsix);
功能说明:INT_ST1 (0x0C0).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.90 ll_dsi_set_irq_mask0
static inline void ll_dsi_set_irq_mask0(dsi_regs_t *dsix, uint32_t mask);
功能说明:INT_MSK0 (0x0C4).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
mask | uint32_t | 输入 | Bitmask of DSI_INT0_*_MASK. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.91 ll_dsi_set_irq_mask1
static inline void ll_dsi_set_irq_mask1(dsi_regs_t *dsix, uint32_t mask);
功能说明:INT_MSK1 (0x0C8).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
mask | uint32_t | 输入 | Bitmask of DSI_INT1_*_MASK. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.92 ll_dsi_get_irq_mask0
static inline uint32_t ll_dsi_get_irq_mask0(const dsi_regs_t *dsix);
功能说明:INT_MSK0 (0x0C4).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.93 ll_dsi_get_irq_mask1
static inline uint32_t ll_dsi_get_irq_mask1(const dsi_regs_t *dsix);
功能说明:INT_MSK1 (0x0C8).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | const dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果或对应寄存器字段的读取值。 |
1.0.94 ll_dsi_force_irq0
static inline void ll_dsi_force_irq0(dsi_regs_t *dsix, uint32_t mask);
功能说明:INT_FORCE0 (0x0D8).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
mask | uint32_t | 输入 | Bitmask of DSI_INT0_*_MASK. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.95 ll_dsi_force_irq1
static inline void ll_dsi_force_irq1(dsi_regs_t *dsix, uint32_t mask);
功能说明:INT_FORCE1 (0x0DC).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
mask | uint32_t | 输入 | Bitmask of DSI_INT1_*_MASK. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.96 ll_dsi_set_video_shadow_ctrl
static inline void ll_dsi_set_video_shadow_ctrl(dsi_regs_t *dsix, uint32_t value);
功能说明:VID_SHADOW_CTRL (0x100).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
value | uint32_t | 输入 | Bitmask of DSI_VID_SHADOW_CTRL_*_MASK. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.97 ll_dsi_set_video_shadow_enable
static inline void ll_dsi_set_video_shadow_enable(dsi_regs_t *dsix, bool enable);
功能说明:VID_SHADOW_CTRL (0x100) -- EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
enable | bool | 输入 | true to enable video shadow registers. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.98 ll_dsi_request_video_shadow_update
static inline void ll_dsi_request_video_shadow_update(dsi_regs_t *dsix);
功能说明:VID_SHADOW_CTRL (0x100) -- REQ.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
1.0.99 ll_dsi_request_video_shadow_pin_update
static inline void ll_dsi_request_video_shadow_pin_update(dsi_regs_t *dsix);
功能说明:VID_SHADOW_CTRL (0x100) -- PIN_REQ.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
dsix | dsi_regs_t * | 输入 | DSI host 寄存器实例;必须为 MIPI_DSI。 |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2. LL D-PHY TX 接口规范
LL 接口均为 static inline,直接访问 D-PHY TX 寄存器,不执行实例、lane 指针或字段范围校验。调用者必须保证 phyx 为 MIPI_DPHY_TX,并保证 lane 指针有效。
2.0.1 ll_dphy_tx_is_instance
static inline bool ll_dphy_tx_is_instance(const dphy_tx_regs_t *phyx);
功能说明:Check whether the register base is MIPI_DPHY_TX.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | const dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
返回值表:
| 返回值 | 说明 |
|---|---|
bool | 函数计算结果、lane 寄存器块指针或寄存器读取值。 |
2.0.2 ll_dphy_tx_get_lane
static inline dphy_tx_lane_regs_t *ll_dphy_tx_get_lane(dphy_tx_regs_t *phyx, dphy_tx_lane_t lane);
功能说明:Select clock lane or data lane register block.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
lane | dphy_tx_lane_t | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
返回值表:
| 返回值 | 说明 |
|---|---|
dphy_tx_lane_regs_t * | 函数计算结果、lane 寄存器块指针或寄存器读取值。 |
2.0.3 ll_dphy_tx_write_ana_reg00
static inline void ll_dphy_tx_write_ana_reg00(dphy_tx_regs_t *phyx, uint32_t value);
功能说明:ANA_REG00 (0x000).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint32_t | 输入 | Full ANA_REG00 value, including required default bits. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.4 ll_dphy_tx_read_ana_reg00
static inline uint32_t ll_dphy_tx_read_ana_reg00(const dphy_tx_regs_t *phyx);
功能说明:ANA_REG00 (0x000).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | const dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果、lane 寄存器块指针或寄存器读取值。 |
2.0.5 ll_dphy_tx_write_ana_reg01
static inline void ll_dphy_tx_write_ana_reg01(dphy_tx_regs_t *phyx, uint32_t value);
功能说明:ANA_REG01 (0x004).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint32_t | 输入 | Full ANA_REG01 value, including required default bits. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.6 ll_dphy_tx_read_ana_reg01
static inline uint32_t ll_dphy_tx_read_ana_reg01(const dphy_tx_regs_t *phyx);
功能说明:ANA_REG01 (0x004).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | const dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果、lane 寄存器块指针或寄存器读取值。 |
2.0.7 ll_dphy_tx_set_prediv
static inline void ll_dphy_tx_set_prediv(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG03 (0x00C) -- PREDIV.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | PREDIV value, range 0-31. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.8 ll_dphy_tx_set_fbdiv
static inline void ll_dphy_tx_set_fbdiv(dphy_tx_regs_t *phyx, uint16_t value);
功能说明:ANA_REG03 (0x00C)/ANA_REG04 (0x010) -- FBDIV.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint16_t | 输入 | FBDIV value, range 0-511. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.9 ll_dphy_tx_set_clk_phase
static inline void ll_dphy_tx_set_clk_phase(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG05 (0x014) -- PHASE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | PHASE value, range 0-7. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.10 ll_dphy_tx_set_ldo_ref_sel
static inline void ll_dphy_tx_set_ldo_ref_sel(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG06 (0x018) -- LDO_REF_SEL.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | LDO_REF_SEL value, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.11 ll_dphy_tx_set_data_lane_vod
static inline void ll_dphy_tx_set_data_lane_vod(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG08 (0x020) -- DATA_LANE_VOD.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | DATA_LANE_VOD value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.12 ll_dphy_tx_set_pll_lowclk_enable
static inline void ll_dphy_tx_set_pll_lowclk_enable(dphy_tx_regs_t *phyx, bool enable);
功能说明:ANA_REG08 (0x020) -- PLL_LOWCLKEN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
enable | bool | 输入 | true to enable PLL low-clock mode. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.13 ll_dphy_tx_set_lptx_drive
static inline void ll_dphy_tx_set_lptx_drive(dphy_tx_regs_t *phyx, uint8_t zp, uint8_t zn);
功能说明:ANA_REG09 (0x024) -- LPTX_DRIVE_ZP/LPTX_DRIVE_ZN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
zp | uint8_t | 输入 | LPTX_DRIVE_ZP value, range 0-15. |
zn | uint8_t | 输入 | LPTX_DRIVE_ZN value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.14 ll_dphy_tx_set_clk_lane_vod
static inline void ll_dphy_tx_set_clk_lane_vod(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG0B (0x02C) -- CLK_LANE_VOD.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | CLK_LANE_VOD value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.15 ll_dphy_tx_set_data_lane_phase
static inline void ll_dphy_tx_set_data_lane_phase(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG11 (0x044) -- DL_PHASE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | DL_PHASE value, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.16 ll_dphy_tx_set_ldo_1v2
static inline void ll_dphy_tx_set_ldo_1v2(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG17 (0x05C) -- LDO_1V2.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | LDO_1V2 value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.17 ll_dphy_tx_set_pre_emphasis_enable
static inline void ll_dphy_tx_set_pre_emphasis_enable(dphy_tx_regs_t *phyx, bool clk_lane, bool data_lane0, bool data_lane1);
功能说明:ANA_REG18 (0x060) -- CK_LANE/LANE0/LANE1 PRE_EMPHASIS enable.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
clk_lane | bool | 输入 | true to enable clock-lane pre-emphasis. |
data_lane0 | bool | 输入 | true to enable data-lane 0 pre-emphasis. |
data_lane1 | bool | 输入 | true to enable data-lane 1 pre-emphasis. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.18 ll_dphy_tx_set_clk_lane_pre_emphasis
static inline void ll_dphy_tx_set_clk_lane_pre_emphasis(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG19 (0x064) -- CK_LANE_PRE_EMPHASIS.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | CK_LANE_PRE_EMPHASIS value, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.19 ll_dphy_tx_set_data_lane0_pre_emphasis
static inline void ll_dphy_tx_set_data_lane0_pre_emphasis(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG1A (0x068) -- LANE0_PRE_EMPHASIS.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | LANE0_PRE_EMPHASIS value, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.20 ll_dphy_tx_set_data_lane1_pre_emphasis
static inline void ll_dphy_tx_set_data_lane1_pre_emphasis(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG1B (0x06C) -- LANE1_PRE_EMPHASIS.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | LANE1_PRE_EMPHASIS value, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.21 ll_dphy_tx_set_post_divider
static inline void ll_dphy_tx_set_post_divider(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG1E (0x078) -- POST_DIV.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | POST_DIV value, range 0-31. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.22 ll_dphy_tx_set_pll_mode
static inline void ll_dphy_tx_set_pll_mode(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:ANA_REG1E (0x078) -- PLL_MODE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | PLL_MODE value, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.23 ll_dphy_tx_set_digital_reset_release
static inline void ll_dphy_tx_set_digital_reset_release(dphy_tx_regs_t *phyx, bool release);
功能说明:DIG_REG00 (0x080) -- RESET release.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
release | bool | 输入 | true to release digital reset. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.24 ll_dphy_tx_set_dig_reg14_tclkpre
static inline void ll_dphy_tx_set_dig_reg14_tclkpre(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:DIG_REG14 (0x0D0) -- TCLKPRE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | TCLKPRE value, range 0-255. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.25 ll_dphy_tx_set_dig_reg15_tclkpre
static inline void ll_dphy_tx_set_dig_reg15_tclkpre(dphy_tx_regs_t *phyx, uint8_t value);
功能说明:DIG_REG15 (0x0D4) -- TCLKPRE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint8_t | 输入 | TCLKPRE value, range 0-3. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.26 ll_dphy_tx_set_lane_swap
static inline void ll_dphy_tx_set_lane_swap(dphy_tx_lane_regs_t *lane, bool enable);
功能说明:LANE_REG00 (0x000) -- SWAP_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
enable | bool | 输入 | true to enable P/N lane swap. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.27 ll_dphy_tx_set_lane_tlpx
static inline void ll_dphy_tx_set_lane_tlpx(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG05 (0x014) -- HS_TLPX.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_TLPX value, range 0-63. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.28 ll_dphy_tx_set_lane_ths_prepare
static inline void ll_dphy_tx_set_lane_ths_prepare(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG06 (0x018) -- HS_THS_PREPARE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_THS_PREPARE value, range 0-127. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.29 ll_dphy_tx_set_lane_ths_zero
static inline void ll_dphy_tx_set_lane_ths_zero(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG06 (0x018)/LANE_REG07 (0x01C) -- HS_THS_ZERO.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_THS_ZERO value, range 0-127. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.30 ll_dphy_tx_set_lane_ths_trail
static inline void ll_dphy_tx_set_lane_ths_trail(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG08 (0x020) -- HS_THS_TRAIL.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_THS_TRAIL value, range 0-127. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.31 ll_dphy_tx_set_lane_ths_exit
static inline void ll_dphy_tx_set_lane_ths_exit(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG09 (0x024)/LANE_REG11 (0x044) -- HS_THS_EXIT.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_THS_EXIT value, range 0-63. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.32 ll_dphy_tx_set_lane_reg09_tclkpre
static inline void ll_dphy_tx_set_lane_reg09_tclkpre(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG09 (0x024) -- TCLKPRE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | TCLKPRE value, range 0-7. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.33 ll_dphy_tx_set_lane_ppi_sync_enable
static inline void ll_dphy_tx_set_lane_ppi_sync_enable(dphy_tx_lane_regs_t *lane, bool enable);
功能说明:LANE_REG0C (0x030) -- TX_PPI_SYNC_EN.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
enable | bool | 输入 | true to enable lane PPI sync. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.34 ll_dphy_tx_set_lane_hs_tclk_pre
static inline void ll_dphy_tx_set_lane_hs_tclk_pre(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG0E (0x038) -- HS_TCLK_PRE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_TCLK_PRE value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.35 ll_dphy_tx_set_lane_tclk_post
static inline void ll_dphy_tx_set_lane_tclk_post(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG0A (0x028)/LANE_REG10 (0x040) -- HS_TCLK_POST.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_TCLK_POST value, range 0-63. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.36 ll_dphy_tx_set_lane_tta_go
static inline void ll_dphy_tx_set_lane_tta_go(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG10 (0x040) -- HS_TTA_GO.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_TTA_GO value, range 0-63. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.37 ll_dphy_tx_set_lane_tta_sure
static inline void ll_dphy_tx_set_lane_tta_sure(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG11 (0x044) -- HS_TTA_SURE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_TTA_SURE value, range 0-63. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.38 ll_dphy_tx_set_lane_tta_wait
static inline void ll_dphy_tx_set_lane_tta_wait(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG12 (0x048) -- HS_TTA_WAIT.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | HS_TTA_WAIT value, range 0-63. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.39 ll_dphy_tx_set_lane_tclkpre_low
static inline void ll_dphy_tx_set_lane_tclkpre_low(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG1C (0x070) -- TCLKPRE_LOW.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | TCLKPRE_LOW value, range 0-7. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.40 ll_dphy_tx_set_lane_tclkpre_high
static inline void ll_dphy_tx_set_lane_tclkpre_high(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG1C (0x070) -- TCLKPRE_HIGH.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | TCLKPRE_HIGH value, range 0-7. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.41 ll_dphy_tx_set_lane_tclkpre_tail
static inline void ll_dphy_tx_set_lane_tclkpre_tail(dphy_tx_lane_regs_t *lane, uint8_t value);
功能说明:LANE_REG1F (0x07C) -- TCLKPRE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
lane | dphy_tx_lane_regs_t * | 输入 | lane 寄存器块或 lane 枚举;必须是本接口要求的有效 lane。 |
value | uint8_t | 输入 | TCLKPRE value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.42 ll_dphy_tx_set_ttl_reset_release
static inline void ll_dphy_tx_set_ttl_reset_release(dphy_tx_regs_t *phyx, bool release);
功能说明:TTL_REG00 (0x380) -- TTL_RST release.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
release | bool | 输入 | true to release TTL reset. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.43 ll_dphy_tx_write_ttl_reg03
static inline void ll_dphy_tx_write_ttl_reg03(dphy_tx_regs_t *phyx, uint32_t value);
功能说明:TTL_REG03 (0x38C).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint32_t | 输入 | Full TTL_REG03 value, including required default bits. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.44 ll_dphy_tx_read_ttl_reg03
static inline uint32_t ll_dphy_tx_read_ttl_reg03(const dphy_tx_regs_t *phyx);
功能说明:TTL_REG03 (0x38C).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | const dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果、lane 寄存器块指针或寄存器读取值。 |
2.0.45 ll_dphy_tx_set_ttl_clk_impedance
static inline void ll_dphy_tx_set_ttl_clk_impedance(dphy_tx_regs_t *phyx, uint8_t clkp, uint8_t clkn);
功能说明:TTL_REG05 (0x394) -- CLKP/CLKN_IMPEDANCE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
clkp | uint8_t | 输入 | CLKP_IMPEDANCE value, range 0-15. |
clkn | uint8_t | 输入 | CLKN_IMPEDANCE value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.46 ll_dphy_tx_write_ttl_reg0b
static inline void ll_dphy_tx_write_ttl_reg0b(dphy_tx_regs_t *phyx, uint32_t value);
功能说明:TTL_REG0B (0x3AC).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
value | uint32_t | 输入 | Full TTL_REG0B value, including required default bits. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.47 ll_dphy_tx_read_ttl_reg0b
static inline uint32_t ll_dphy_tx_read_ttl_reg0b(const dphy_tx_regs_t *phyx);
功能说明:TTL_REG0B (0x3AC).
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | const dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
返回值表:
| 返回值 | 说明 |
|---|---|
uint32_t | 函数计算结果、lane 寄存器块指针或寄存器读取值。 |
2.0.48 ll_dphy_tx_set_ttl_data0_impedance
static inline void ll_dphy_tx_set_ttl_data0_impedance(dphy_tx_regs_t *phyx, uint8_t datap, uint8_t datan);
功能说明:TTL_REG0C (0x3B0) -- DATAP0/DATAN0_IMPEDANCE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
datap | uint8_t | 输入 | DATAP0_IMPEDANCE value, range 0-15. |
datan | uint8_t | 输入 | DATAN0_IMPEDANCE value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |
2.0.49 ll_dphy_tx_set_ttl_data1_impedance
static inline void ll_dphy_tx_set_ttl_data1_impedance(dphy_tx_regs_t *phyx, uint8_t datap, uint8_t datan);
功能说明:TTL_REG0D (0x3B4) -- DATAP1/DATAN1_IMPEDANCE.
参数表:
| 参数 | 类型 | 方向 | 说明 |
|---|---|---|---|
phyx | dphy_tx_regs_t * | 输入 | D-PHY TX 寄存器实例;必须为 MIPI_DPHY_TX。 |
datap | uint8_t | 输入 | DATAP1_IMPEDANCE value, range 0-15. |
datan | uint8_t | 输入 | DATAN1_IMPEDANCE value, range 0-15. |
返回值表:
| 返回值 | 说明 |
|---|---|
| 无 | void 接口,直接执行寄存器写操作。 |