CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
ui.h File Reference

Entry points of the CardSight touch UI. More...

Go to the source code of this file.

Functions

void cardsight_ui_refresh (void *argument)
 Refresh task body: wait for change notifications and request redraws.
void cardsight_ui_runtime (void *argument)
 LVGL runtime task body: initialise the display and run the LVGL loop.
void cardsight_diagnostics_init (void)
 Create the diagnostics shell commands used to probe the UI.
int cardsight_validate_ui (void)
 Validate the LVGL object tree and report inconsistencies.

Detailed Description

Entry points of the CardSight touch UI.

The UI runs as two RTOS tasks: a refresh task that posts redraw requests from application state, and the LVGL runtime task that owns every widget.

Function Documentation

◆ cardsight_ui_refresh()

void cardsight_ui_refresh ( void * argument)

Refresh task body: wait for change notifications and request redraws.

Parameters
[in]argumentUnused task argument.

◆ cardsight_ui_runtime()

void cardsight_ui_runtime ( void * argument)

LVGL runtime task body: initialise the display and run the LVGL loop.

Parameters
[in]argumentUnused task argument.

◆ cardsight_validate_ui()

int cardsight_validate_ui ( void )

Validate the LVGL object tree and report inconsistencies.

Returns
0 when the tree is consistent, or a negative errno on the first failure detected.