|
GPS Device
|
Configuration structure for initializing a menu handle. More...
#include <menu.h>
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) |
| char | name [CONFIG_MENU_MAX_NAME_LEN] |
Configuration structure for initializing a menu handle.
Passed to menu_init_handle. The number of options is determined automatically by scanning for the first entry whose first character is ‘’\0'`, so the options array must be null-terminated in this sense.
| char MENU_CFG_ts::title[SSD1309_MAX_CHARS_IN_LINE] |
| char MENU_CFG_ts::options[CONFIG_MENU_MAX_OPTIONS][SSD1309_MAX_CHARS_IN_LINE] |
Array of option label strings. Each entry is a null-terminated string of at most SSD1309_MAX_CHARS_IN_LINE characters. The array is scanned until an entry whose first byte is ‘’\0'` is found, which marks the end of the option list.
| MENU_TYPE_ts MENU_CFG_ts::type |
| ERR_te(* MENU_CFG_ts::get_value_fn) (uint8_t index, char **value_o) |
Callback used by MENU_TYPE_DATA_VIEW menus to fetch the live value for a given option index at render time.
| [in] | index | Zero-based index of the option whose value is needed. |
| [out] | value_o | Pointer that will be set to the value string. |
| char MENU_CFG_ts::name[CONFIG_MENU_MAX_NAME_LEN] |