Functions | |
void | hal_gdc_MIPI_out (int cmd) |
Send command or data to MIPI Interface. More... | |
void | hal_gdc_MIPI_CFG_out (int cfg) |
Configure hal_gdc's serial interace. More... | |
int | hal_gdc_MIPI_in (void) |
Read data from MIPI interface. More... | |
unsigned | hal_gdc_MIPI_read (int cmd, int n_params) |
Read MIPI DBI Type-B parameters. More... | |
void | hal_gdc_MIPI_cmd (int cmd) |
Send DCS command to display over the physical interface. More... | |
void | hal_gdc_MIPI_cmd_params (int cmd, int n_params,...) |
Similar to hal_gdc_MIPI_cmd, with command parameters. More... | |
int | hal_gdc_MIPI_updateregion (int start_x, int start_y, int end_x, int end_y) |
Does Partial Update in MIPI. More... | |
void | hal_gdc_MIPI_enable (void) |
Convenience function. Sends exit_sleep and display_on commands. More... | |
void | hal_gdc_MIPI_disable (void) |
Convenience function. Sends display_off and enter_sleep_mode commands. More... | |
void | hal_gdc_MIPI_set_pixel_format (int pixel_format) |
Set the display pixel format. Sends set_pixel_format command to the display. More... | |
void | hal_gdc_MIPI_set_position (int minx, int miny, int maxx, int maxy) |
Set the frame position. Sends set_column_address and set_page_address commands. More... | |
void | hal_gdc_MIPI_set_partial_mode (int minx, int miny, int maxx, int maxy) |
Set the display partial area and enter Partial Display Mode. More... | |
void | hal_gdc_MIPI_start_frame_transfer (void) |
Convenience function. Send a write_memory_start command in order to start transfering the frame to the display. More... | |
void hal_gdc_MIPI_CFG_out | ( | int | cfg | ) |
Configure hal_gdc's serial interace.
[in] | cfg | configuration mode |
void hal_gdc_MIPI_cmd | ( | int | cmd | ) |
Send DCS command to display over the physical interface.
[in] | cmd | MIPI DCS command |
void hal_gdc_MIPI_cmd_params | ( | int | cmd, |
int | n_params, | ||
... | |||
) |
Similar to hal_gdc_MIPI_cmd, with command parameters.
[in] | cmd | MIPI DCS command |
[in] | n_params | Number of cmd parameters |
void hal_gdc_MIPI_disable | ( | void | ) |
Convenience function. Sends display_off and enter_sleep_mode commands.
void hal_gdc_MIPI_enable | ( | void | ) |
Convenience function. Sends exit_sleep and display_on commands.
int hal_gdc_MIPI_in | ( | void | ) |
Read data from MIPI interface.
void hal_gdc_MIPI_out | ( | int | cmd | ) |
Send command or data to MIPI Interface.
[in] | cmd | command or data to be sent |
unsigned hal_gdc_MIPI_read | ( | int | cmd, |
int | n_params | ||
) |
Read MIPI DBI Type-B parameters.
[in] | cmd | MIPI DCS command |
[in] | n_params | Number of parameters to read (max: 3) |
void hal_gdc_MIPI_set_partial_mode | ( | int | minx, |
int | miny, | ||
int | maxx, | ||
int | maxy | ||
) |
Set the display partial area and enter Partial Display Mode.
[in] | minx | partial areas' minimum x |
[in] | miny | partial areas' minimum y |
[in] | maxx | partial areas' maximum x |
[in] | maxy | partial areas' maximum y |
void hal_gdc_MIPI_set_pixel_format | ( | int | pixel_format | ) |
Set the display pixel format. Sends set_pixel_format command to the display.
[in] | pixel_format | pixel format |
void hal_gdc_MIPI_set_position | ( | int | minx, |
int | miny, | ||
int | maxx, | ||
int | maxy | ||
) |
Set the frame position. Sends set_column_address and set_page_address commands.
[in] | minx | frames' minimum x |
[in] | miny | frames' minimum y |
[in] | maxx | frame's maximum x |
[in] | maxy | frame's maximum y |
void hal_gdc_MIPI_start_frame_transfer | ( | void | ) |
Convenience function. Send a write_memory_start command in order to start transfering the frame to the display.
int hal_gdc_MIPI_updateregion | ( | int | start_x, |
int | start_y, | ||
int | end_x, | ||
int | end_y | ||
) |
Does Partial Update in MIPI.
[in] | start_x | start x coordinate |
[in] | start_y | start y coordinate |
[in] | end_x | end x coordinate |
[in] | end_y | end y coordinate |