Electronic Load  1.0
Programmable Constant Current Sink
menu.h
Go to the documentation of this file.
1 /*
2  * menu.h
3  *
4  * Created: 30.08.2011 13:00:40
5  * Author: rolo
6  */
7 
8 
9 #ifndef MENU_H_
10 #define MENU_H_
11 
12 
16 typedef struct
17 {
18  char shortcut;
19  const char *text;
20  uint8_t (*action)(void);
21 } menuItem_t;
22 
33 typedef struct
34 {
35  const char *head;
36  menuItem_t entry[];
37 } menu_t;
38 
39 void Menu(const menu_t *menu);
40 
41 extern const menu_t menuStructMain;
42 void MenuMain(void);
43 extern uint8_t redrawRequest;
44 
45 #endif /* MENU_H_ */
char shortcut
One character abbreviation to select (only digits possible)
Definition: menu.h:18
const char * text
The text for the menu line. Must reside in PROGMEM!
Definition: menu.h:19
const char * head
Definition: menu.h:35
Contains data for one menu item.
Definition: menu.h:16
Contains one menu.
Definition: menu.h:33