/*-----------------------------------按键架构---------------------------------*/
/*CurMenuID = 本菜单ID
MaxMenuItem = 同级菜单最大项数
OkMenuID = 子菜单层所对应的菜单ID,ID=255为菜单已经到底了
EscMenuID = 父菜单层所对应的菜单ID,ID=255为菜单已经到顶了
DownMenuID = 弟菜单层所对应的菜单ID,ID=255为菜单是独生子
UpMenuID = 兄菜单层所对应的菜单ID,ID=255为菜单是独生子
CurFunction = 本菜单所对应的菜单函数指针 */
KeyTabStruct KeyTab[MAX_KEYTABSTRUCT_NUM]={
/* CurID Max Ok Esc Down Up CurFunction */
{FACE, 0, Menu, Menu, 255, 255, *FunctionNul },
{Menu, 5, EUTtype, FACE, PortSet, ShutOff, *FunctionNul },
{EUTtype, 2, I_type, Menu, PortSet, ShutOff, *FunctionNul },
{I_type, 0, 255, EUTtype, II_type, II_type, *Function_I },
{II_type, 0, 255, EUTtype, I_type, I_type, *Function_II },
{PortSet, 9, Port0, Menu, Paramete, EUTtype, *FunctionNul },
{Port0, 0, 255, PortSet, Port1, Port8, *Function_Port },
{Port1, 0, 255, PortSet, Port2, Port0, *Function_Port },
{Port2, 0, 255, PortSet, Port3, Port1, *Function_Port },
{Port3, 0, 255, PortSet, Port4, Port2, *Function_Port },
{Port4, 0, 255, PortSet, Port5, Port3, *Function_Port },
{Port5, 0, 255, PortSet, Port6, Port4, *Function_Port },
{Port6, 0, 255, PortSet, Port7, Port5, *Function_Port },
{Port7, 0, 255, PortSet, Port8, Port6, *Function_Port },
{Port8, 0, 255, PortSet, Port0, Port7, *Function_Port },
{Paramete, 3, Voltage, Menu, SystemSet, PortSet, *FunctionNul },
{Voltage, 0, 255, Paramete, Testtime, Exterior, *Function_Paramet},
{Testtime, 0, 255, Paramete, Spacetime, Voltage, *Function_Paramet},
{Spacetime, 0, 255, Paramete, Exterior, Testtime, *Function_Paramet},
{Exterior, 0, 255, Paramete, Voltage, Spacetime,*Function_Paramet},
{SystemSet, 3, Time, Menu, ShutOff, Paramete, *Function_System },
{Time, 7, Year, SystemSet, Backlight, Buzzer, *FunctionNul },
{Year, 0, 255, Time, Month, Second, *Function_Time },
{Month, 0, 255, Time, Day, Year, *Function_Time },
{Day, 0, 255, Time, Week, Month, *Function_Time },
{Week, 0, 255, Time, Hour, Day, *Function_Time },
{Hour, 0, 255, Time, Minute, Week, *Function_Time },
{Minute, 0, 255, Time, Second, Hour, *Function_Time },
{Second, 0, 255, Time, Year, Minute, *Function_Time },
{Backlight, 2, Green, SystemSet, Buzzer, Time, *FunctionNul },
{Green, 0, 255, Backlight, Red, Red, *Function_BkLight},
{Red, 0, 255, Backlight, Green, Green, *Function_BkLight},
{Buzzer, 2, Open, SystemSet, Time, Backlight,*FunctionNul },
{Open, 0, 255, Buzzer, Close, Close, *Function_Open },
{Close, 0, 255, Buzzer, Open, Open, *Function_Close },
{ShutOff, 0, 255, Menu, EUTtype, SystemSet,*Function_ShutOff}