1
6
7
8
9
10
11
12
13
14
15
16
17
18
19
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* ... */
#pragma once
#include <stdbool.h>
#include "esp_err.h"
#include "esp_lcd_types.h"
#include "driver/spi_master.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef int esp_lcd_spi_bus_handle_t;
/* ... */
typedef struct {
int cs_gpio_num;
int dc_gpio_num;
int spi_mode;
unsigned int pclk_hz;
size_t trans_queue_depth;
esp_lcd_panel_io_color_trans_done_cb_t on_color_trans_done;
void *user_ctx;
int lcd_cmd_bits;
int lcd_param_bits;
uint8_t cs_ena_pretrans;
uint8_t cs_ena_posttrans;
struct {
unsigned int dc_high_on_cmd: 1;
unsigned int dc_low_on_data: 1;
unsigned int dc_low_on_param: 1;
unsigned int octal_mode: 1;
unsigned int quad_mode: 1;
unsigned int sio_mode: 1;
unsigned int lsb_first: 1;
unsigned int cs_high_active: 1;
}{ ... } flags;
}{ ... } esp_lcd_panel_io_spi_config_t;
/* ... */
esp_err_t esp_lcd_new_panel_io_spi(esp_lcd_spi_bus_handle_t bus, const esp_lcd_panel_io_spi_config_t *io_config, esp_lcd_panel_io_handle_t *ret_io);
#ifdef __cplusplus
}{...}
#endif