DMCP interface  03.15_020
smenu_t Struct Reference

Single menu screen definition. More...

Data Fields

const char * name
 Display name of the menu.
 
const uint8_t * items
 Menu items.
 
const char *const * msg
 Message displayed above menu. NULL = no message. More...
 
void_fn_tpost_disp
 Function called after the menu is drawn to LCD.
 

Detailed Description

Single menu screen definition.

Example usage

const uint8_t mid_print[] = {
MI_PRTOF_GRAPH,
MI_PRTOF_TEXT,
MI_PRTOF_GR_IN_TXT,
MI_PRTOF_NOIR,
0 }; // Terminator
const smenu_t MID_PRINT = { "Print to File", mid_print, NULL, NULL };

Field Documentation

◆ msg

const char* const* msg

Message displayed above menu. NULL = no message.

Message is array of strings terminated by NULL.

Example usage

const char* const dsktst_warn_msg[] = {
"All data stored in the FAT",
"disk will be destroyed by",
"this low-level media test!",
NULL
};