35 #include "hal_platform.h" 37 #ifndef __HAL_DISPLAY_DSI_H__ 38 #define __HAL_DISPLAY_DSI_H__ 40 #ifdef HAL_DISPLAY_DSI_MODULE_ENABLED 134 HAL_DISPLAY_DSI_STATUS_INITIALIZATION_FAILED = -6,
135 HAL_DISPLAY_DSI_STATUS_POWER_FAILED = -5,
136 HAL_DISPLAY_DSI_STATUS_COMMAND_QUEUE_FAILED = -4,
137 HAL_DISPLAY_DSI_STATUS_INVALID_PARAMETER = -3,
138 HAL_DISPLAY_DSI_STATUS_READ_FAILED = -2,
139 HAL_DISPLAY_DSI_STATUS_ERROR = -1,
140 HAL_DISPLAY_DSI_STATUS_OK = 0,
141 } hal_display_dsi_status_t;
145 HAL_DISPLAY_DSI_TRANSFER_MODE_LP = 0,
146 HAL_DISPLAY_DSI_TRANSFER_MODE_HS,
147 HAL_DISPLAY_DSI_TRANSFER_MODE_AUTO,
148 HAL_DISPLAY_DSI_TRANSFER_MODE_NUM
149 } hal_display_dsi_transfer_mode_t;
164 uint32_t da_hs_trail;
172 uint32_t clk_hs_trail;
173 uint32_t clk_hs_zero;
174 uint32_t clk_hs_post;
175 uint32_t clk_hs_prep;
176 } hal_display_dsi_dphy_timing_struct_t;
191 hal_display_dsi_status_t hal_display_dsi_init(
bool ssc_enable);
192 hal_display_dsi_status_t hal_display_dsi_deinit(
void);
208 hal_display_dsi_status_t hal_display_dsi_power_on(
void);
217 hal_display_dsi_status_t hal_display_dsi_power_off(
void);
226 hal_display_dsi_status_t hal_display_dsi_enable_te(
void);
239 hal_display_dsi_status_t hal_display_dsi_set_command_queue(uint32_t *pData, uint8_t size,
bool forced_update);
253 hal_display_dsi_status_t hal_display_dsi_set_command_queue_ex(uint32_t command, uint32_t size, uint32_t *data,
bool forced_update);
266 hal_display_dsi_status_t hal_display_dsi_read_register(uint8_t command, uint8_t *buffer, uint8_t size);
275 hal_display_dsi_status_t hal_display_dsi_enter_ulps(
void);
284 hal_display_dsi_status_t hal_display_dsi_exit_ulps(
void);
295 hal_display_dsi_status_t hal_display_dsi_set_dphy_timing(hal_display_dsi_dphy_timing_struct_t *timing);
307 hal_display_dsi_status_t hal_display_dsi_set_clock(uint32_t pll_clock,
bool ssc_enable);
318 hal_display_dsi_status_t hal_display_dsi_set_transfer_mode(hal_display_dsi_transfer_mode_t mode);
329 void hal_dsiplay_dsi_start_bta_transfer(uint32_t command);
338 void hal_display_dsi_start_bta_transfer(uint32_t command);
346 void hal_display_dsi_restore_callback(
void);
356 hal_display_dsi_status_t hal_display_dsi_apply_setting(
void);