📄 menu._h
字号:
#ifndef __MENU__H
#define __MENU__H
#define MAX_KEYTABSTRUCT_NUM 13
#define MENU_FACE 0
#define MENU_ROOT 1
#define MENU_OPERATION 2
#define MENU_OPERATION_UPLOAD 3
#define MENU_OPERATION_UPLOAD_MESSAGE 4
#define MENU_OPERATION_UPLOAD_ALL 5
#define MENU_OPERATION_DIAGNOSE 6
#define MENU_OPERATION_SAVEFLAUTS 7
#define MENU_OPERATION_CLEARFLAUTS 8
#define MENU_SYSTEMSET 9
#define MENU_SYSTEMSET_CLK 10
#define MENU_SYSTEMSET_CONNECT 11
#define MENU_OPERATION_UPLOAD_MESSAGE_1 12
/*选中菜单编号*/
#define MENU_START_NUM 0
#define MENU_NUM_FIRST 1
#define MENU_NUM_SEC 2
#define MENU_NUM_THREE 3
#define MENU_NUM_FOUR 4
#define MENU_BMP_SIZE 0x400/*byte*/
#define MENU_BASE_ADDRESS 0xE0000
#define MENU_HIGH_LIGHT_BASE_ADDRESS 0xF0000
#define MENU_HIGH_LIGHT_BASE_MAX 5
#define MENU_NUMBMP_SIZE 8/*byte*/
#define MENU_NUM_BASE_ADDRESS MENU_HIGH_LIGHT_BASE_ADDRESS+MENU_HIGH_LIGHT_BASE_MAX*MENU_BMP_SIZE
#define MENU_NUM_BASE_MAX 10
typedef struct
{
UNS8 KeyTab_MenuIndex; //当前状态索引号
UNS8 KeyTab_MaxItems; //本级菜单最大条目数
UNS8 KeyTab_PressOk; //按下"回车"键时转向的状态索引号
UNS8 KeyTab_PressEsc; //按下"返回"键时转向的状态索引号
UNS8 KeyTab_PressDown; //按下"向下"键时转向的状态索引号
UNS8 KeyTab_PressUp; //按下"向上"键时转向的状态索引号
void (*CurrentOperate)(void);//当前状态应该执行的功能操作
}KeyTabStruct;
void MenuInit(void);
void MenuFunctionDemo0(void);
void MenuFunctionDemo1(void);
void MenuFunctionDemo2(void);
void MenuFunctionDemo3(void);
void MenuFunctionDemo4(void);
void MenuFunctionDemo5(void);
void MenuFunctionDemo6(void);
void MenuFunctionDemo7(void);
void MenuFunctionDemo8(void);
void MenuFunctionDemo9(void);
void MenuFunctionDemo10(void);
void MenuFunctionDemo11(void);
void MenuFunctionDemo12(void);
void JudgeHLight(void);
void DispFaceBmp(void);
void DispMenu_Root(void);
void DispMenu_Operation(void);
void DispMenu_Operation_Diagnose(void);
void DispMenu_Operation_Diagnose_1(void);
void DispMenu_Systemset(void);
void write_sid_page(UNS8 page_num);
void write_sid_fmi(void);
void Read_Menu( UNS8 num);
void Read_NumBmp( UNS8 num,UNS8 array[]);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -