switch(MenuGrade) //读取菜单状态
{
case 0x01: menu0(); //;0级菜单
break;
case 0x02: menu1(); //;1级菜单
break;
case 0x04: menu2(); //;2级菜单
break;
case 0x08: menu3(); //;3级菜单
break;
case 0x10: menu4(); //;4级菜单
break;
case 0x20: menu5(); //;5级菜单
break;
case 0x40: menu6();//;6级菜单
break;
case 0x80: menu7(); //;7级菜单
break;
case 0x100: menu8(); //;8级菜单
break;
default:
break;
}
if(MenuGrade&0x01)menu0(); //;0级菜单
if(MenuGrade&0x02)menu1(); //;1级菜单
if(MenuGrade&0x04)menu2(); //;2级菜单
if(MenuGrade&0x08)menu3(); //;3级菜单
if(MenuGrade&0x10)menu4(); //;4级菜单
if(MenuGrade&0x20)menu5(); //;5级菜单
if(MenuGrade&0x40)menu6();//;6级菜单
if(MenuGrade&0x80)menu7(); //;7级菜单
if(MenuGrade&0x100)menu8(); //;8级菜单 |