00001
00030 #ifndef MENU_H
00031 #define MENU_H
00032
00033
00034
00035
00036
00037
00038 #define ST_INIT (10)
00039 #define ST_BATCON (20)
00040 #define ST_PREQUAL (30)
00041 #define ST_SLEEP (40)
00042 #define ST_FASTCHARGE (50)
00043 #define ST_LOWRATECHARGE (60)
00044 #define ST_ENDCHARGE (70)
00045 #define ST_DISCHARGE (80)
00046 #define ST_ERROR (90)
00047 #define ST_CCURRENT (100)
00048 #define ST_CVOLTAGE (110)
00049 #define ST_MAXVOLTCURR (120)
00050
00051
00052
00053
00054
00059 struct MENU_STATE_struct
00060 {
00061 unsigned char state;
00062 unsigned char (*pFunc)(unsigned char inp);
00063 };
00064 typedef struct MENU_STATE_struct MENU_STATE_t;
00065
00066
00067
00068
00069
00070 extern __flash const MENU_STATE_t menu_state[];
00071
00072 #endif // MENU_H