lv_ft81x.h
Typedefs
-
typedef void (*lv_ft81x_spi_cb_t)(lv_display_t *disp, lv_ft81x_spi_operation operation, void *data, uint32_t length)
Enums
Functions
-
lv_display_t *lv_ft81x_create(const lv_ft81x_parameters_t *params, void *partial_buf, uint32_t buf_size, lv_ft81x_spi_cb_t spi_cb, void *user_data)
Create a framebuffer-based ft81x driver display.
- Parameters:
params – pointer to a struct of display panel properties. does not need to be static.
partial_buf – a single partial buffer
buf_size – size of the partial buffer
spi_cb – a callback called by the driver to perform SPI operations
user_data – use
lv_ft81x_get_user_data
to get this pointer inside the SPI callback
- Returns:
pointer to the display
-
void *lv_ft81x_get_user_data(lv_display_t *disp)
Get the
user_data
parameter that was passed tolv_ft81x_create
. Useful in the SPI callback.- Parameters:
disp – pointer to the ft81x display
- Returns:
the
user_data
pointer
-
struct lv_ft81x_parameters_t