#ifndef __BALANCE_H #define __BALANCE_H #define BALANCE_ENABLE 1 #define BALANCE_START 2 #define BALANCING 3 #define BALANCE_DISABLE 4 #define BALANCE_NULL 5 #define BAL_DELAY_CNT (E2ucBalanceDelay*10) #define VOL_CELL_CUT_1200MV 1200 #define VOL_CELL_CUT_180MV 180 #define VOL_CELL_CUT_1380MV (VOL_CELL_CUT_1200MV+VOL_CELL_CUT_180MV) extern BOOL bBalanceFlg; extern BOOL bBalancingFlg; extern BOOL bBalanceOddFlg; extern BOOL bCTOValidFlg; //当电芯压差超过1200mV时,才认为存在断线,主要解决电芯电压低于2V情况下 extern BOOL bCellOpenDecFlag; extern U16 xdata uiBalanceChannel; extern U8 xdata ucBalanceTimeCnt; extern U8 xdata ucBalanceStep; extern U8 xdata ucCellOpenDecCnt; extern U8 xdata ucCtoCnt; extern void BalanceProcess(void); #endif