Functions | |
| uint16_t | graphics_dc_init (app_graphics_dc_params_t *dc_params, graphics_dc_irq_event_notify_cb evt_cb) |
| init Graphics DC dev More... | |
| void | graphics_dc_deinit (void) |
| de-init Graphics DC dev, just called when needed to reboot/reset More... | |
| void | graphics_dc_pins_reinit (void) |
| re-init i/o for Graphics DC dev with pre-init i/o setting More... | |
| void | app_graphics_dc_set_power_state (graphics_dc_power_state_e state) |
| Switch power state for DC module. More... | |
| void | app_graphics_dc_freq_set (graphics_dc_clock_freq_e clock_freq) |
| DC clock frequency set. More... | |
| void | app_graphics_dc_spi_send (uint8_t cmd_8bit, uint32_t address_24bit, uint8_t *data, uint32_t length) |
| Send 1 Byte CMD,3 Byte ADDR And N Byte Data in 1-wire SPI Mode. More... | |
| void | app_graphics_dc_dspi_send_cmd_in_3wire_1lane (uint8_t cmd) |
| Send single cmd in 3-wire mode for DSPI (no DCX and 1 more MSB Bit for cmd indicator) More... | |
| void | app_graphics_dc_dspi_send_cmd_data_in_3wire_1lane (uint8_t cmd, uint8_t data) |
| Send single cmd &data in 3-wire mode for DSPI (no DCX and 1 more MSB Bit for cmd/data indicator) More... | |
| void | app_graphics_dc_dspi_send_cmd_data_in_4wire_2lane (uint16_t cmd, uint16_t data) |
| Send cmd &data in 4-wire mode for DSPI (DCX as SD1, and 1 more MSB Bit for cmd/data indicator) More... | |
| void | app_graphics_dc_dspi_send_cmd_datas_in_4wire_2lane (uint16_t cmd, uint16_t *data, int length) |
| Send cmd &data in 4-wire mode for DSPI (DCX as SD1, and 1 more MSB Bit for cmd/data indicator) More... | |
| app_graphics_dc_frame_result_e | app_graphics_dc_send_single_frame (uint32_t which_layer, app_graphics_dc_framelayer_t *frame_layer, app_graphics_dc_cmd_t *dc_cmd, app_graphics_dc_access_type_e access_type) |
| Send one whole frame by DC. More... | |
| void app_graphics_dc_dspi_send_cmd_data_in_3wire_1lane | ( | uint8_t | cmd, |
| uint8_t | data | ||
| ) |
Send single cmd &data in 3-wire mode for DSPI (no DCX and 1 more MSB Bit for cmd/data indicator)
| [in] | cmd | 8bits command |
| [in] | data | 8bits data |
| void app_graphics_dc_dspi_send_cmd_data_in_4wire_2lane | ( | uint16_t | cmd, |
| uint16_t | data | ||
| ) |
Send cmd &data in 4-wire mode for DSPI (DCX as SD1, and 1 more MSB Bit for cmd/data indicator)
| [in] | cmd | 16bits command |
| [in] | data | 16bits data |
| void app_graphics_dc_dspi_send_cmd_datas_in_4wire_2lane | ( | uint16_t | cmd, |
| uint16_t * | data, | ||
| int | length | ||
| ) |
Send cmd &data in 4-wire mode for DSPI (DCX as SD1, and 1 more MSB Bit for cmd/data indicator)
| [in] | cmd | 16bits command |
| [in] | data | Pointer to data buffer |
| [in] | length | Data length |
| void app_graphics_dc_dspi_send_cmd_in_3wire_1lane | ( | uint8_t | cmd | ) |
Send single cmd in 3-wire mode for DSPI (no DCX and 1 more MSB Bit for cmd indicator)
| [in] | cmd | 8bits command |
| void app_graphics_dc_freq_set | ( | graphics_dc_clock_freq_e | clock_freq | ) |
DC clock frequency set.
| [in] | clock_freq | DC clock frequency |
| app_graphics_dc_frame_result_e app_graphics_dc_send_single_frame | ( | uint32_t | which_layer, |
| app_graphics_dc_framelayer_t * | frame_layer, | ||
| app_graphics_dc_cmd_t * | dc_cmd, | ||
| app_graphics_dc_access_type_e | access_type | ||
| ) |
Send one whole frame by DC.
| [in] | which_layer | |
| [in] | frame_layer | pointer to dc layer setting |
| [in] | dc_cmd | pointer to DC control command |
| [in] | access_type |
|
| void app_graphics_dc_set_power_state | ( | graphics_dc_power_state_e | state | ) |
Switch power state for DC module.
| [in] | state | power state to switch |
| void app_graphics_dc_spi_send | ( | uint8_t | cmd_8bit, |
| uint32_t | address_24bit, | ||
| uint8_t * | data, | ||
| uint32_t | length | ||
| ) |
Send 1 Byte CMD,3 Byte ADDR And N Byte Data in 1-wire SPI Mode.
| [in] | cmd_8bit | 8bits command |
| [in] | address_24bit | 24bits address |
| [in] | data | Pointer to data buffer |
| [in] | length | Data length |
| void graphics_dc_deinit | ( | void | ) |
de-init Graphics DC dev, just called when needed to reboot/reset
| uint16_t graphics_dc_init | ( | app_graphics_dc_params_t * | dc_params, |
| graphics_dc_irq_event_notify_cb | evt_cb | ||
| ) |
init Graphics DC dev
| [in] | dc_params | pointer to dc init params |
| [in] | evt_cb | event callback Note: GDC_IRQ_EVT_FRAME_TRANSMITION_END & GDC_IRQ_EVT_CMD_TRANSMITION_END |
| APP_DRV_SUCCESS | |
| APP_DRV_ERR_HAL | |
| APP_DRV_ERR_POINTER_NULL |
| void graphics_dc_pins_reinit | ( | void | ) |
re-init i/o for Graphics DC dev with pre-init i/o setting