lv_draw_eve_display.h
API reference for lv_draw_eve_display.h
Functions
lv_draw_eve_display_get_user_data
Get the user_data parameter that was passed to lv_draw_eve_display_create. Useful in the operation callback.
void * lv_draw_eve_display_get_user_data(lv_display_t *disp)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | pointer to the lv_draw_eve display |
Returns: void * — the user_data pointer
lv_draw_eve_display_create
Create a display for the EVE draw unit.
lv_display_t * lv_draw_eve_display_create(const lv_draw_eve_parameters_t *params, lv_draw_eve_operation_cb_t op_cb, void *user_data)| Name | Type | Description |
|---|---|---|
params | const lv_draw_eve_parameters_t * | Pointer to a struct of display parameters. Can be a temporary variable |
op_cb | lv_draw_eve_operation_cb_t | A callback that will be called to perform pin and SPI IO operations with the EVE chip |
user_data | void * | use lv_draw_eve_display_get_user_data to get this pointer inside the op_cb May be NULL. |
Returns: lv_display_t * — the EVE display
lv_draw_eve_touch_create
Create a touchscreen indev for the EVE display.
lv_indev_t * lv_draw_eve_touch_create(lv_display_t *disp)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | pointer to the lv_draw_eve display |
Returns: lv_indev_t * — the EVE touchscreen indev
lv_draw_eve_pre_upload_image
Upload an image src to RAM_G now instead of as-needed during rendering.
void lv_draw_eve_pre_upload_image(lv_display_t *disp, const void *src)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | pointer to the lv_draw_eve display |
src | const void * | image src. The value passed to lv_image_set_src |
lv_draw_eve_pre_upload_font_range
Upload font glyphs to RAM_G now instead of as-needed during rendering. Upload all the glyphs in the range of unicode code points (inclusive of the start and end values). It can be called multiple times with different ranges.
void lv_draw_eve_pre_upload_font_range(lv_display_t *disp, const lv_font_t *font, uint32_t unicode_range_start, uint32_t unicode_range_end)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | pointer to the lv_draw_eve display |
font | const lv_font_t * | the font to upload glyphs from |
unicode_range_start | uint32_t | the first unicode code point in the range of glyphs to upload |
unicode_range_end | uint32_t | the last unicode code point (inclusive) in the range of glyphs to upload |
lv_draw_eve_pre_upload_font_text
Upload font glyphs to RAM_G now instead of as-needed during rendering. It will upload all the glyphs needed to render the string text. It can be called multiple times with different strings.
void lv_draw_eve_pre_upload_font_text(lv_display_t *disp, const lv_font_t *font, const char *text)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | pointer to the lv_draw_eve display |
font | const lv_font_t * | the font to upload glyphs from |
text | const char * | the ASCII or UTF-8 string that will be iterated for glyphs to upload |
lv_draw_eve_memread8
Call EVE_memRead8 for custom low-level control of the display.
uint8_t lv_draw_eve_memread8(lv_display_t *disp, uint32_t address)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | the display returned by lv_draw_eve_display_create |
address | uint32_t | the EVE address to read from |
Returns: uint8_t — the read value
lv_draw_eve_memread16
Call EVE_memRead16 for custom low-level control of the display.
uint16_t lv_draw_eve_memread16(lv_display_t *disp, uint32_t address)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | the display returned by lv_draw_eve_display_create |
address | uint32_t | the EVE address to read from |
Returns: uint16_t — the read value
lv_draw_eve_memread32
Call EVE_memRead32 for custom low-level control of the display.
uint32_t lv_draw_eve_memread32(lv_display_t *disp, uint32_t address)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | the display returned by lv_draw_eve_display_create |
address | uint32_t | the EVE address to read from |
Returns: uint32_t — the read value
lv_draw_eve_memwrite8
Call EVE_memWrite8 for custom low-level control of the display.
void lv_draw_eve_memwrite8(lv_display_t *disp, uint32_t address, uint8_t data)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | the display returned by lv_draw_eve_display_create |
address | uint32_t | the EVE address to write to |
data | uint8_t | the value to write |
lv_draw_eve_memwrite16
Call EVE_memWrite16 for custom low-level control of the display.
void lv_draw_eve_memwrite16(lv_display_t *disp, uint32_t address, uint16_t data)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | the display returned by lv_draw_eve_display_create |
address | uint32_t | the EVE address to write to |
data | uint16_t | the value to write |
lv_draw_eve_memwrite32
Call EVE_memWrite32 for custom low-level control of the display.
void lv_draw_eve_memwrite32(lv_display_t *disp, uint32_t address, uint32_t data)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | the display returned by lv_draw_eve_display_create |
address | uint32_t | the EVE address to write to |
data | uint32_t | the value to write |
Dependencies
Last updated on