Mircea Murar
/
0007_Menu
application for developing a menu
menu.h@0:842039476c99, 2014-03-21 (annotated)
- Committer:
- Mircea3M
- Date:
- Fri Mar 21 15:22:35 2014 +0000
- Revision:
- 0:842039476c99
Menu example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mircea3M | 0:842039476c99 | 1 | #ifndef __MENU_H_INCLUDED__ |
Mircea3M | 0:842039476c99 | 2 | #define __MENU_H_INCLUDED__ |
Mircea3M | 0:842039476c99 | 3 | |
Mircea3M | 0:842039476c99 | 4 | #include "mbed.h" |
Mircea3M | 0:842039476c99 | 5 | #include "C12832_lcd.h" |
Mircea3M | 0:842039476c99 | 6 | |
Mircea3M | 0:842039476c99 | 7 | |
Mircea3M | 0:842039476c99 | 8 | typedef const struct menuStructure{ |
Mircea3M | 0:842039476c99 | 9 | const char *text; |
Mircea3M | 0:842039476c99 | 10 | unsigned char menupoints; |
Mircea3M | 0:842039476c99 | 11 | unsigned char up; |
Mircea3M | 0:842039476c99 | 12 | unsigned char down; |
Mircea3M | 0:842039476c99 | 13 | unsigned char enter; |
Mircea3M | 0:842039476c99 | 14 | void (*fp) (void); |
Mircea3M | 0:842039476c99 | 15 | }menuEntry; |
Mircea3M | 0:842039476c99 | 16 | |
Mircea3M | 0:842039476c99 | 17 | void start(void); |
Mircea3M | 0:842039476c99 | 18 | void show_menu(void); |
Mircea3M | 0:842039476c99 | 19 | void browse_menu(void); |
Mircea3M | 0:842039476c99 | 20 | |
Mircea3M | 0:842039476c99 | 21 | |
Mircea3M | 0:842039476c99 | 22 | |
Mircea3M | 0:842039476c99 | 23 | #endif |