menu.c

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00030 #include <stdlib.h>
00031 
00032 #include "statefunc.h"
00033 #include "charge.h"
00034 #include "main.h"
00035 #include "menu.h"
00036 
00037 
00038 //******************************************************************************
00039 // State menu (relies on the proper battery type to be defined in main.h!)
00040 //******************************************************************************
00041 #ifdef NIMH
00042 
00046 __flash const MENU_STATE_t menu_state[] = {
00047 //  State                                       State function
00048   { ST_INIT,            Initialize},
00049   { ST_BATCON,          BatteryControl},
00050   { ST_PREQUAL,         Charge},
00051   { ST_SLEEP,           Sleep},
00052   { ST_FASTCHARGE,      Charge},
00053   { ST_LOWRATECHARGE,   Charge},
00054   { ST_ENDCHARGE,       Charge},        
00055   { ST_DISCHARGE,       Discharge},
00056   { ST_ERROR,           Error},
00057   { 0,                  NULL},
00058 };
00059 #endif // NIMH
00060 
00061 #ifdef LIION
00062 
00066 __flash const MENU_STATE_t menu_state[] = {
00067 //  State                                       State function
00068   { ST_INIT,            Initialize},
00069   { ST_BATCON,          BatteryControl},
00070   { ST_PREQUAL,         Charge},
00071   { ST_SLEEP,           Sleep},
00072   { ST_CCURRENT,        Charge},
00073   { ST_CVOLTAGE,        Charge},
00074   { ST_ENDCHARGE,       Charge},        
00075   { ST_DISCHARGE,       Discharge},
00076   { ST_ERROR,           Error},
00077   { 0,                  NULL},
00078 };
00079 #endif // LIION

Generated on Tue Sep 4 19:17:55 2007 for AVR463 Charging NiMH Batteries with ATAVRBC100 by  doxygen 1.5.2