lv_ft81x.h

API reference for lv_ft81x.h

Report on GitHub

Functions

lv_ft81x_get_user_data

Get the user_data parameter that was passed to lv_ft81x_create. Useful in the SPI callback.

 
void * lv_ft81x_get_user_data(lv_display_t *disp)
Parameters
NameTypeDescription
displv_display_t *pointer to the ft81x display

Returns: void * — the user_data pointer

Enums

lv_ft81x_spi_operation_t

Name
LV_FT81X_SPI_OPERATION_CS_ASSERT
LV_FT81X_SPI_OPERATION_CS_DEASSERT
LV_FT81X_SPI_OPERATION_SEND
LV_FT81X_SPI_OPERATION_RECEIVE

Structs

struct

lv_ft81x_parameters_t

MemberTypeDescription
hor_resuint16_tactive display width
ver_resuint16_tactive display height
hcycleuint16_ttotal number of clocks per line, incl front/back porch
hoffsetuint16_tstart of active line
hsync0uint16_tstart of horizontal sync pulse
hsync1uint16_tend of horizontal sync pulse
vcycleuint16_ttotal number of lines per screen, including pre/post
voffsetuint16_tstart of active screen
vsync0uint16_tstart of vertical sync pulse
vsync1uint16_tend of vertical sync pulse
swizzleuint8_tFT8xx output to LCD - pin order
pclkpoluint8_tLCD data is clocked in on this PCLK edge
cspreaduint8_thelps with noise, when set to 1 fewer signals are changed simultaneously, reset-default: 1
pclkuint8_t60MHz / pclk = pclk frequency
has_crystalboolhas an external clock crystal
is_bt81xboolis a BT series model, not FT
Used by 1 function
  • lv_ft81x_create — param params

Typedefs

lv_ft81x_spi_cb_t

 
typedef void(* lv_ft81x_spi_cb_t) (lv_display_t *disp, lv_ft81x_spi_operation_t operation, void *data, uint32_t length)
Used by 1 function
  • lv_ft81x_create — param spi_cb

Dependencies

How is this guide?

Last updated on

On this page