00001 /* This file has been prepared for Doxygen automatic documentation generation.*/ 00030 #ifndef CHARGEFUNC_H 00031 #define CHARGEFUNC_H 00032 00033 //****************************************************************************** 00034 // Temperature definitions (if JAPANREGS is defined in charge.h) 00035 //****************************************************************************** 00039 #define TEMP_HYST 1 00040 00041 #define T0 10 00042 #define T1 45 00043 #define T2 50 00044 #define T3 60 00045 00046 00047 //****************************************************************************** 00048 // PWM error handling 00049 //****************************************************************************** 00051 #define ABORT_IF_PWM_MAX 00052 00054 #define ABORT_IF_PWM_MIN 00055 00056 00057 //****************************************************************************** 00058 // Definitions for HaltFlags 00059 //****************************************************************************** 00061 #define HALT_VOLTAGE_DROP 0x01 00062 00064 #define HALT_VOLTAGE_MAX 0x02 00065 00067 #define HALT_CURRENT_MIN 0x04 00068 00070 #define HALT_TEMPERATURE_RISE 0x08 00071 00073 #define HALT_TIME 0x10 00074 00076 #define HALT_FLAG_EXHAUSTION 0x20 00077 00078 00079 //****************************************************************************** 00080 // Global variables 00081 //****************************************************************************** 00082 extern ChargeParameters_t ChargeParameters; 00083 extern HaltParameters_t HaltParameters; 00084 00085 00086 //****************************************************************************** 00087 // Function prototypes 00088 //****************************************************************************** 00089 unsigned char ConstantCurrent(void); 00090 unsigned char ConstantVoltage(void); 00091 unsigned char MaxVoltageAndCurrent(void); 00092 unsigned char HaltNow(void); 00093 00094 #endif // CHARGEFUNC_H