30 lines
821 B
C
30 lines
821 B
C
|
#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; //<2F><><EFBFBD><EFBFBD>оѹ<D0BE><EFBFBD><EEB3AC>1200mVʱ<56><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>ڶ<EFBFBD><DAB6>ߣ<EFBFBD><DFA3><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><D0BE>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>2V<32><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
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
|