12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #include "commontypedef.h"
- #include "cmsis_os2.h"
- #define ErrorNumLen 5
- extern UINT16 COMOutTable[29];
- //declear the UINT8 vars
- extern UINT8 battCellTemp[8];
- extern UINT8 MOSTemp;
- extern UINT8 packTemp;
- extern UINT8 fastChargeTemp;
- extern UINT8 normalChargeTemp;
- extern UINT8 heatTemp1;
- extern UINT8 heatTemp2;
- extern UINT8 nbReservedTemp1;
- extern UINT8 nbReservedTemp2;
- extern UINT8 maxCellTemp;
- extern UINT8 minCellTemp;
- extern UINT8 battSOC;
- extern UINT8 battSOH;
- extern UINT8 battWorkState;
- extern UINT8 bmsSwVersion;
- extern UINT8 bmsHwVersion;
- extern UINT8 battMOSSwitchState;
- extern UINT8 battHeatEnableState;
- extern UINT8 RelayControlState;
- extern UINT8 BuzzerControl;
- extern UINT8 CanMsgFlag;
- extern UINT8 VibrationStatus;
- extern UINT8 RxInterprut;
- extern UINT8 chargerConnectState;
- extern UINT8 BattWorkStateDelay;
- extern UINT8 HeatForceControl;
- extern UINT8 AvgBattTemp;
- //declear the UINT16 vars
- extern UINT16 battCellU[28];
- extern UINT16 minCellVol;
- extern UINT16 maxCellVol;
- extern UINT16 battPackVol;
- extern UINT16 battI;
- extern UINT16 nbHwVersion;
- extern INT16 xzyDataSend[3];
- extern UINT8 Lockstatus;
- extern UINT8 Error_count;
- //declear the UINT32 vars
- extern UINT32 battWarningState;
- extern UINT32 nbSwVersion;
- extern UINT32 battBalanceoInfo;
- extern UINT32 Battdesigncap;
- extern UINT32 BattRemainCap;
- extern UINT32 battProtectState;
- extern UINT16 ErrorNum[ErrorNumLen];//故障代码
- extern UINT8 TcpSendLen;
- extern osMutexId_t Error_Mutex;
- extern INT16 Data_Current ;
- extern UINT8 BmsUpdateState;
- #ifdef SOC_TEST
- extern UINT8 SOC1;
- extern UINT8 SOC2;
- extern UINT16 Data_33 ;
- extern UINT16 Data_34 ;
- extern UINT32 Data_35 ;
- extern UINT16 Data_37 ;
- extern UINT16 Data_38 ;
- extern UINT16 Data_39 ;
- extern UINT16 Data_3A ;
- extern UINT16 Data_3B ;
- extern UINT16 Data_3C ;
- extern UINT16 Data_3D ;
- extern UINT16 Data_3E ;
- extern UINT16 Data_3F ;
- extern UINT16 Data_40 ;
- extern UINT16 Data_41 ;
- extern UINT16 Data_42 ;
- extern UINT16 Data_43 ;
- #endif
|