Commit 4a8123c2 authored by 时昊's avatar 时昊

feat:增加菜单功能

parent 18d7078b
......@@ -34,64 +34,74 @@ typedef unsigned int Menu_uint32_t;
*/
typedef enum
{
MENU_ITEM_BACKLIGHT_SETTING, /*04 背光设置*/
MENU_ITEM_BACKLIGHT_AUTO, /*05 背光自动*/
MENU_ITEM_BACKLIGHT_1, /*06 背光_1*/
MENU_ITEM_BACKLIGHT_2, /*07 背光_2*/
MENU_ITEM_BACKLIGHT_3, /*08 背光_3*/
MENU_ITEM_BACKLIGHT_4, /*09 背光_4*/
MENU_ITEM_BACKLIGHT_5, /*10 背光_5*/
MENU_ITEM_MAIN_ITEM = 0, /*主界面*/
MENU_ITEM_DISPLAY_MODE, /*00 显示模式*/
MENU_ITEM_BACKLIGHT_SETTING, /*04 背光设置*/
MENU_ITEM_BLUETOOTH_CONNECT, /*11 蓝牙连接*/
MENU_ITEM_CLOCK_SETTING, /*15 时钟设置*/
MENU_ITEM_UNIT_SETTING, /*21 单位设置*/
MENU_ITEM_LANGUAGE_SETTING, /*24 语言设置*/
MENU_ITEM_FAULT_INFORMATION, /*27 故障信息*/
MENU_ITEM_PHONE_CONNECT, /*28 手机互联*/
MENU_ITEM_QUIT, /*29 退出*/
MENU_ITEM_BLUETOOTH_CONNECT, /*11 蓝牙连接*/
MENU_ITEM_BLUETOOTH_OPEN, /*12 蓝牙_开*/
MENU_ITEM_BLUETOOTH_CLOSE, /*13 蓝牙_关*/
MENU_ITEM_BLUETOOTH_BACK, /*14 蓝牙返回*/
MENU_ITEM_SELECT_DAYTIME, /*01 选中日间*/
MENU_ITEM_SELECT_NIGHTTIME, /*02 选中夜间*/
MENU_ITEM_SELECT_AUTO, /*03 选中自动*/
MENU_ITEM_BACKLIGHT_5, /*10 背光_5*/
MENU_ITEM_BACKLIGHT_4, /*09 背光_4*/
MENU_ITEM_BACKLIGHT_3, /*08 背光_3*/
MENU_ITEM_BACKLIGHT_2, /*07 背光_2*/
MENU_ITEM_BACKLIGHT_1, /*06 背光_1*/
MENU_ITEM_BACKLIGHT_AUTO, /*05 背光自动*/
MENU_ITEM_CLOCK_SETTING, /*15 时钟设置*/
MENU_ITEM_CLOCK_BACK, /*16 时钟返回*/
MENU_ITEM_CLOCK_MIN_BIT, /*17 时钟分钟个位*/
MENU_ITEM_CLOCK_MIN_TENB, /*18 时钟分钟十位*/
MENU_ITEM_CLOCK_HOUR_BIT, /*19 时钟小时个位*/
MENU_ITEM_CLOCK_HOUR_TENB, /*20 时钟小时十位*/
MENU_ITEM_BLUETOOTH_OPEN, /*12 蓝牙_开*/
MENU_ITEM_BLUETOOTH_CLOSE, /*13 蓝牙_关*/
MENU_ITEM_BLUETOOTH_SYNC, /*13 蓝牙同步联系人*/
MENU_ITEM_BLUETOOTH_BACK, /*14 蓝牙返回*/
MENU_ITEM_UNIT_SETTING, /*21 单位设置*/
MENU_ITEM_UNIT_KM, /*22 选中公制*/
MENU_ITEM_UNIT_MILE, /*23 选中英制*/
MENU_ITEM_CLOCK_HOUR_TENB, /*20 时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_BIT, /*19 时钟小时个位*/
MENU_ITEM_CLOCK_MIN_TENB, /*18 时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_BIT, /*17 时钟分钟个位*/
MENU_ITEM_CLOCK_BACK, /*16 时钟返回*/
MENU_ITEM_LANGUAGE_SETTING, /*24 语言设置*/
MENU_ITEM_LANGUAGE_CHINESE, /*25 选中中文*/
MENU_ITEM_LANGUAGE_ENGLISH, /*26 选中英文*/
MENU_ITEM_FAULT_INFORMATION, /*27 故障信息*/
MENU_ITEM_PHONE_CONNECT, /*28 手机互联*/
MENU_ITEM_PHONE_CONNECT_WIN, /*28 手机互联成功*/
MENU_ITEM_QUIT, /*29 退出*/
MENU_ITEM_MAX,
MENU_ITEM_UNIT_KM, /*22 选中公制*/
MENU_ITEM_UNIT_MILE, /*23 选中英制*/
MENU_ITEM_LANGUAGE_CHINESE, /*25 选中中文*/
MENU_ITEM_LANGUAGE_ENGLISH, /*26 选中英文*/
MENU_ITEM_PHONE_CONNECT_WIN, /*28 手机互联成功*/
MENU_ITEM_MAX,
} Menu_Item_en_t;
/*所有菜单界面的枚举*/
typedef enum
{
MENU_INTF_DISPLAY_MODE = 0U, /*显示模式*/
MENU_INTF_BACKLIGHT_SETTING, /*背光设置*/
MENU_INTF_BLUETOOTH_CONNECT, /*蓝牙连接*/
MENU_INTF_CLOCK_SETTING, /*时钟设置*/
MENU_INTF_UNIT_SETTING, /*单位设置*/
MENU_INTF_LANGUAGE_SETTING, /*语言设置*/
MENU_INTF_FAULT_INFORMATION, /*故障信息*/
MENU_INTF_MAIN_INTF = 0,
MENU_INTF_PHONE_CONNECT, /*手机互联*/
MENU_INTF_MODE,
MENU_INTF_QUIT, /*退出*/
MENU_INTF_DISPLAY_MODE, /*显示模式*/
MENU_INTF_BACKLIGHT_SETTING, /*背光设置*/
MENU_INTF_BLUETOOTH_CONNECT, /*蓝牙连接*/
MENU_INTF_CLOCK_SETTING, /*时钟设置*/
MENU_INTF_UNIT_SETTING, /*单位设置*/
MENU_INTF_LANGUAGE_SETTING, /*语言设置*/
MENU_INTF_FAULT_INFORMATION, /*故障信息*/
MENU_INTF_PHONE_CONNECT, /*手机互联*/
MENU_INTF_QUIT, /*退出*/
MENU_INTERFACE_MAX,
} Menu_Interface_en_t;
/*所有菜单分支*/
......@@ -398,6 +408,8 @@ extern Menu_uint8_t Menu_Item_Select_Get(Menu_Item_en_t enMenuItem);
/*-----------------------------------------------------------------------------------*/
extern Menu_uint8_t u8MenuRamData[MENU_RAM_DATA_LEN];
extern void Menu_Service(Menu_Key_en_t enMenuKey);
void Menu_User_Init(void);
void Menu_User_WAKEUP(void);
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment