C语言菜单设计(C language menu design)
C language menu design
Const unsigned char menu0_1 [] FLASH = {" 1. Automatic operation ";
Const unsigned char menu0_2 [] FLASH = {" 2. Manual operation ";
Const unsigned char menu0_3 [] FLASH = {" 3. System Settings"
Const unsigned char menu1 [] FLASH = {" 1. Password Settings"
Const unsigned char menu2 [] FLASH = {2.
Const unsigned char menu3 [] FLASH = {3.
Const unsigned char menu4 [] FLASH = {" 4.
Const unsigned char menu5 [] FLASH = {" 5.
Const unsigned char menu6 [] FLASH = {" 1.
Const unsigned char menu7 [] FLASH = {" 2. Automatic password setting"
Const unsigned char menu8 [] FLASH = {" 3. Manual password Settings"
Const unsigned char menu9 [] FLASH = {" 1. Increase parking number ";
Const unsigned char menu10 [] FLASH = {" 2. Number of set number "};
Const unsigned char menu11 [] FLASH = {" 1.
Const unsigned char menu12 [] FLASH = {" 2.
Const unsigned char menu13 [] FLASH = {" 3. Manually delete the card "};
Const unsigned char menu14 [] FLASH = {" 4 statistics card number "};
Const unsigned char menu15 [] FLASH = {" 6.
# define MAX_KEYTABSTRUCT_NUM 18
# define MENU_AUTOMIMA 1
# define MENU_SHOUMIMA 2
# define MENU_SYSTEMMIMA 3
# define MENU_MIMA 4
# define MENU_MIMA_SITONG 5
# define MENU_MIMA_ZHIDONG 6
# define MENU_MIMA_SHOUDONG 7
# define MENU_CHEWEI 8
# define MENU_CHEWEI_ADD 9
# define MENU_CHEWEI_CHAKAN 10
# define MENU_PLCSEL 11
# define MENU_KAHAO 12
# define MENU_KAHAO_ADD 13
# define MENU_KAHAO_GANYINDELL 14
# define MENU_KAHAO_SHOUDONGDELL 15
# define MENU_KAHAO_CHAKAN 16
# define MENU_ZHANHAO 17
# define MENU_GONUM 18
Typedef struct
{
Uchar MenuID; / / this menu status index number
Uchar ParMenuID; / / parent menu status index number
Const uchar * MenuName; / / menu text content
Void CurrentOperate (*) (void); / / the function of this menu
} KeyTabStruct;
/ / menu table,
FLASH = const KeyTabStruct KeyTab [MAX_KEYTABSTRUCT_NUM]
{
/ / menu ID menu ID menu menu function function
/ / MenuID, ParMenuID, MenuName, CurF