www.pudn.com > PRMCharger_V0.04.rar > menu.h, change:2008-03-09,size:5420b


/*************************************/ 
/*     AVR Menu v1.0                 */ 
/*              Designed by aleyn.wu */ 
/*************************************/ 
#ifndef _MENU_INCLUDE 
#define MENU_TEXT      1 
#define MENU_RADIO     2 
#define MENU_CHECK     3 
#define MENU_SPACE     4 
#define MENU_RADIOMENU 5 
#define MENU_SUBITEM   6 
#define MENU_END       0 
/*OPTION CPL:16*/ 
#define CAPTION_LENGTH 16 
#define MN_PARA_SETTING    2 
#define SD_PARA_SETTING    2 
#define MN_BATTERY_STATE    3 
#define SD_BATTERY_STATE    12 
#define MN_COM_SETTING    4 
#define SD_COM_SETTING    13 
#define MN_VERSION    5 
#define SD_VERSION    16 
#define MN_STAT_BATTERY0    50 
#define MN_STAT_BATTERY1    51 
#define MN_STAT_BATTERY_BOTH    52 
#define MENU_COUNT 60 
flash unsigned char  Menu[]={ 
/*MENU  ST:7, PD:00, ID:01*/ "Function Sel    ", MENU_SUBITEM+1, 
/*MENU  ST:7, PD:00, ID:02*/ "Para Setting    ", MENU_SUBITEM+2,/*DEF PARA_SETTING*/ 
/*MENU  ST:7, PD:00, ID:03*/ "Bettery Stat    ", MENU_SUBITEM+12,/*DEF BATTERY_STATE*/ 
/*MENU  ST:7, PD:00, ID:04*/ "COM Setting     ", MENU_SUBITEM+13,/*DEF COM_SETTING*/ 
/*MENU  ST:7, PD:00, ID:05*/ "Version         ", MENU_SUBITEM+16,/*DEF VERSION*/ 
/*MENU  ST:2, PD:01, ID:06*/ "Normal Charger  ", MENU_TEXT, 
/*MENU  ST:2, PD:01, ID:07*/ "Test Battery Sta", MENU_TEXT, 
/*MENU  ST:2, PD:01, ID:08*/ "Test Bettery own", MENU_TEXT, 
/*MENU  ST:2, PD:01, ID:09*/ "Repair Battery  ", MENU_TEXT, 
/*MENU  ST:2, PD:01, ID:10*/ "Normal Discharge", MENU_TEXT, 
/*MENU  ST:2, PD:01, ID:11*/ "Battery Test Cir", MENU_TEXT, 
/*MENU  ST:7, PD:08, ID:12*/ "Battery 0       ", MENU_SUBITEM+3, 
/*MENU  ST:7, PD:08, ID:13*/ "Battery 1       ", MENU_SUBITEM+4, 
/*MENU  ST:7, PD:08, ID:14*/ "Copy Function   ", MENU_SUBITEM+5, 
/*MENU  ST:7, PD:08, ID:15*/ "Default         ", MENU_SUBITEM+6, 
/*MENU  ST:7, PD:08, ID:16*/ "Custom Setting  ", MENU_SUBITEM+7, 
/*MENU  ST:2, PD:09, ID:17*/ "F1              ", MENU_TEXT, 
/*MENU  ST:2, PD:09, ID:18*/ "F2              ", MENU_TEXT, 
/*MENU  ST:2, PD:09, ID:19*/ "F3              ", MENU_TEXT, 
/*MENU  ST:2, PD:09, ID:20*/ "F4              ", MENU_TEXT, 
/*MENU  ST:2, PD:09, ID:21*/ "F5              ", MENU_TEXT, 
/*MENU  ST:2, PD:15, ID:22*/ "F1              ", MENU_TEXT, 
/*MENU  ST:2, PD:15, ID:23*/ "F2              ", MENU_TEXT, 
/*MENU  ST:2, PD:15, ID:24*/ "F3              ", MENU_TEXT, 
/*MENU  ST:2, PD:15, ID:25*/ "F4              ", MENU_TEXT, 
/*MENU  ST:2, PD:15, ID:26*/ "F5              ", MENU_TEXT, 
/*MENU  ST:2, PD:21, ID:27*/ "Copy B1 to B2   ", MENU_TEXT, 
/*MENU  ST:2, PD:21, ID:28*/ "Copy B2 to B1   ", MENU_TEXT, 
/*MENU  ST:2, PD:24, ID:29*/ "Reset Default   ", MENU_TEXT, 
/*MENU  ST:7, PD:26, ID:30*/ "Custom1         ", MENU_SUBITEM+8, 
/*MENU  ST:7, PD:26, ID:31*/ "Custom2         ", MENU_SUBITEM+9, 
/*MENU  ST:7, PD:26, ID:32*/ "Custom3         ", MENU_SUBITEM+10, 
/*MENU  ST:7, PD:26, ID:33*/ "Custom4         ", MENU_SUBITEM+11, 
/*MENU  ST:2, PD:27, ID:34*/ "Load B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:27, ID:35*/ "Load B1         ", MENU_TEXT, 
/*MENU  ST:2, PD:27, ID:36*/ "Save B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:27, ID:37*/ "Save B1         ", MENU_TEXT, 
/*MENU  ST:2, PD:32, ID:38*/ "Load B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:32, ID:39*/ "Load B1         ", MENU_TEXT, 
/*MENU  ST:2, PD:32, ID:40*/ "Save B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:32, ID:41*/ "Save B1         ", MENU_TEXT, 
/*MENU  ST:2, PD:37, ID:42*/ "Load B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:37, ID:43*/ "Load B1         ", MENU_TEXT, 
/*MENU  ST:2, PD:37, ID:44*/ "Save B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:37, ID:45*/ "Save B1         ", MENU_TEXT, 
/*MENU  ST:2, PD:42, ID:46*/ "Load B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:42, ID:47*/ "Load B1         ", MENU_TEXT, 
/*MENU  ST:2, PD:42, ID:48*/ "Save B0         ", MENU_TEXT, 
/*MENU  ST:2, PD:42, ID:49*/ "Save B1         ", MENU_TEXT, 
/*MENU  ST:3, PD:47, ID:50*/ "Bettery0        ", MENU_RADIO,/*DEF STAT_BATTERY0*/ 
/*MENU  ST:3, PD:47, ID:51*/ "Bettery1        ", MENU_RADIO,/*DEF STAT_BATTERY1*/ 
/*MENU  ST:3, PD:47, ID:52*/ "Both B0 & B1    ", MENU_RADIO,/*DEF STAT_BATTERY_BOTH*/ 
/*MENU  ST:7, PD:51, ID:53*/ "BaudRate        ", MENU_SUBITEM+14, 
/*MENU  ST:7, PD:51, ID:54*/ "COM Setting     ", MENU_SUBITEM+15, 
/*MENU  ST:2, PD:52, ID:55*/ "9600            ", MENU_TEXT, 
/*MENU  ST:2, PD:52, ID:56*/ "38400           ", MENU_TEXT, 
/*MENU  ST:2, PD:55, ID:57*/ "Cycle           ", MENU_TEXT, 
/*MENU  ST:2, PD:55, ID:58*/ "Interrupt       ", MENU_TEXT, 
/*MENU  ST:2, PD:58, ID:59*/ "Hardware: V0.3  ", MENU_TEXT, 
/*MENU  ST:2, PD:58, ID:60*/ "Software: V0.03 ", MENU_TEXT, 
MENU_END 
}; 
#define SUBMENUDEFINE_COUNT 17 
flash unsigned char SubMenuDefine[]={ 
/*SUBMENU of ID:00 */ 1, 5, 
/*SUBMENU of ID:01 */ 6, 6, 
/*SUBMENU of ID:02 */ 12, 5, 
/*SUBMENU of ID:12 */ 17, 5, 
/*SUBMENU of ID:13 */ 22, 5, 
/*SUBMENU of ID:14 */ 27, 2, 
/*SUBMENU of ID:15 */ 29, 1, 
/*SUBMENU of ID:16 */ 30, 4, 
/*SUBMENU of ID:30 */ 34, 4, 
/*SUBMENU of ID:31 */ 38, 4, 
/*SUBMENU of ID:32 */ 42, 4, 
/*SUBMENU of ID:33 */ 46, 4, 
/*SUBMENU of ID:03 */ 50, 3, 
/*SUBMENU of ID:04 */ 53, 2, 
/*SUBMENU of ID:53 */ 55, 2, 
/*SUBMENU of ID:54 */ 57, 2, 
/*SUBMENU of ID:05 */ 59, 2, 
0 
}; 
#define _MENU_INCLUDE 
void ExecuteMenu(unsigned char MenuID); 
#endif 

送体验金的网站