9#ifndef OVE_LVGL_INTERNAL_H
10#define OVE_LVGL_INTERNAL_H
31#include "ove_config.h"
void ove_lvgl_tick(uint32_t ms)
Advance the LVGL internal tick counter.
bool(* ove_lvgl_encoder_read_fn_t)(int16_t *diff, bool *pressed)
Encoder read callback — the user implements this to deliver rotation/click events to LVGL.
Definition lvgl_internal.h:65
int ove_lvgl_register_encoder(ove_lvgl_encoder_read_fn_t cb)
Register an encoder input device with LVGL.
int ove_lvgl_register_keypad(ove_lvgl_keypad_read_fn_t cb)
Register a keypad input device with LVGL.
void ove_lvgl_lock(void)
Acquire the LVGL mutex before calling any LVGL API.
bool(* ove_lvgl_keypad_read_fn_t)(uint32_t *key, bool *pressed)
Keypad read callback — the user implements this to deliver key events to LVGL via ove_lvgl_register_k...
Definition lvgl_internal.h:53
void ove_lvgl_handler(void)
Process pending LVGL tasks (rendering, input, animations).
void * ove_lvgl_get_encoder_indev(void)
Returns the encoder LVGL input device handle as void*, or NULL if none has been registered.
void * ove_lvgl_get_keypad_indev(void)
Returns the keypad LVGL input device handle (lv_indev_t * as void*) or NULL if none has been register...
void ove_lvgl_unlock(void)
Release the LVGL mutex after calling LVGL APIs.
int ove_lvgl_init(void)
Initialise the LVGL library and register the board's display driver.
@ OVE_ERR_NOT_SUPPORTED
Definition types.h:98