|
GPS Device
|
Internal structure representing a single menu instance. More...

Public Attributes | |
| char | title [SSD1309_MAX_CHARS_IN_LINE] |
| char | options [CONFIG_MENU_MAX_OPTIONS][SSD1309_MAX_CHARS_IN_LINE] |
| MENU_TYPE_ts | type |
| ERR_te(* | get_value_fn )(uint8_t index, char **value_o) |
| uint8_t | line_to_highlight |
| uint8_t | options_count |
| int8_t | selected_option |
| int8_t | prev_selected_option |
| int8_t | first_visible_option |
| int8_t | last_visible_option |
| MENU_HANDLE_ts * | prev_menu [CONFIG_MENU_MAX_BUF_SIZE] |
| uint8_t | prev_menu_count |
| char | name [CONFIG_MENU_MAX_NAME_LEN] |
| bool | in_use |
Internal structure representing a single menu instance.
Holds all runtime state for one menu, including the copied configuration, scroll/selection tracking, the navigation history stack, and lifecycle flags.
This structure is opaque to the caller; it is accessed only through the MENU_HANDLE_ts pointer returned by menu_init_handle.
| char menu_handle_s::title[SSD1309_MAX_CHARS_IN_LINE] |
| char menu_handle_s::options[CONFIG_MENU_MAX_OPTIONS][SSD1309_MAX_CHARS_IN_LINE] |
| MENU_TYPE_ts menu_handle_s::type |
| ERR_te(* menu_handle_s::get_value_fn) (uint8_t index, char **value_o) |
Callback for fetching live values in MENU_TYPE_DATA_VIEW mode. NULL for MENU_TYPE_SELECTABLE menus.
| uint8_t menu_handle_s::line_to_highlight |
| uint8_t menu_handle_s::options_count |
Total number of scrollable rows. For MENU_TYPE_DATA_VIEW menus this is twice the number of options (labels + values interleaved).
| int8_t menu_handle_s::selected_option |
| int8_t menu_handle_s::prev_selected_option |
| int8_t menu_handle_s::first_visible_option |
| int8_t menu_handle_s::last_visible_option |
| MENU_HANDLE_ts* menu_handle_s::prev_menu[CONFIG_MENU_MAX_BUF_SIZE] |
| uint8_t menu_handle_s::prev_menu_count |
| char menu_handle_s::name[CONFIG_MENU_MAX_NAME_LEN] |
| bool menu_handle_s::in_use |