oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Typedefs | Functions
lvgl_internal.h File Reference
#include "ove/types.h"
#include "ove_config.h"
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for lvgl_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef 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_keypad().
 
typedef 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.
 

Functions

int ove_lvgl_register_keypad (ove_lvgl_keypad_read_fn_t cb)
 Register a keypad input device with LVGL.
 
int ove_lvgl_register_encoder (ove_lvgl_encoder_read_fn_t cb)
 Register an encoder input device with LVGL.
 
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 registered. Cast to lv_indev_t * at the call site and bind to an lv_group_t via lv_indev_set_group().
 
void * ove_lvgl_get_encoder_indev (void)
 Returns the encoder LVGL input device handle as void*, or NULL if none has been registered.
 
int ove_lvgl_init (void)
 Initialise the LVGL library and register the board's display driver.
 
void ove_lvgl_lock (void)
 Acquire the LVGL mutex before calling any LVGL API.
 
void ove_lvgl_unlock (void)
 Release the LVGL mutex after calling LVGL APIs.
 
void ove_lvgl_tick (uint32_t ms)
 Advance the LVGL internal tick counter.
 
void ove_lvgl_handler (void)
 Process pending LVGL tasks (rendering, input, animations).