ZDBMS/header_drv/Balance.h

30 lines
821 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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