00001 /* This file has been prepared for Doxygen automatic documentation generation.*/ 00029 #ifndef MENU_H 00030 #define MENU_H 00031 00032 //****************************************************************************** 00033 // State machine states 00034 //****************************************************************************** 00035 // State machine states -- max size and number of states is 255. 00036 // State values must be larger than zero 00037 #define ST_INIT (10) 00038 #define ST_BATCON (20) 00039 #define ST_PREQUAL (30) 00040 #define ST_SLEEP (40) 00041 #define ST_FASTCHARGE (50) 00042 #define ST_LOWRATECHARGE (60) 00043 #define ST_ENDCHARGE (70) 00044 #define ST_DISCHARGE (80) 00045 #define ST_ERROR (90) 00046 #define ST_CCURRENT (100) 00047 #define ST_CVOLTAGE (110) 00048 00049 00050 //****************************************************************************** 00051 // Struct declarations 00052 //****************************************************************************** 00057 struct MENU_STATE_struct 00058 { 00059 unsigned char state; 00060 unsigned char (*pFunc)(unsigned char inp); 00061 }; 00062 typedef struct MENU_STATE_struct MENU_STATE_t; 00063 00064 00065 //****************************************************************************** 00066 // Global variables 00067 //****************************************************************************** 00068 extern __flash const MENU_STATE_t menu_state[]; 00069 00070 #endif // MENU_H
1.5.2