123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380 |
- #ifndef SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_
- #define SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_
- #include "Std_Types.h"
- #include "HardwareLib.h"
- extern UINT32 BcuInTable[28];
- extern BOOL BcuRxShortError[28];
- extern BOOL BcuRxLongError[28];
- extern UINT8 BcuRxErrorCounter[28];
- extern UINT8 BcuRxFlag[28];
- extern UINT8 BMS_ReqVIN;
- extern UINT8 BMS_ReqHVOff;
- extern UINT8 BMS_ProtocolEditionH;
- extern UINT8 BMS_ProtocolEditionL;
- extern UINT8 BMS_CharDevNum;
- extern UINT8 BMS_FtPosRly;
- extern UINT8 BMS_FtNegRly;
- extern UINT8 BMS_FtPosCharRly1;
- extern UINT8 BMS_FtNegCharRly1;
- extern UINT8 BMS_FtPosCharRly2;
- extern UINT8 BMS_FtNegCharRly2;
- extern UINT8 BMS_FtHeatRly1;
- extern UINT8 BMS_FtHeatRly2;
- extern UINT8 BMS_StPosRly;
- extern UINT8 BMS_StNegRly;
- extern UINT8 BMS_StPreCharRly;
- extern UINT8 BMS_StPosCharRly1;
- extern UINT8 BMS_StNegCharRly1;
- extern UINT8 BMS_StPosCharRly2;
- extern UINT8 BMS_StNegCharRly2;
- extern UINT8 BMS_FtAuxRelayWeld;
- extern UINT8 BMS_BraOpenCirc;
- extern UINT8 BMS_FtBackCharCurrOutLim;
- extern UINT8 BMS_FtPosRlyOpen;
- extern UINT8 BMS_FtNegRlyOpen;
- extern UINT8 BMS_FtPosCharRly1Open;
- extern UINT8 BMS_FtPosCharRly2Open;
- extern UINT8 BMS_FtNegCharRly1Open;
- extern UINT8 BMS_FtNegCharRly2Open;
- extern UINT8 BMS_FtTMSContClose;
- extern UINT8 BMS_FtTMSContOpen;
- extern UINT8 BMS_FtTMS;
- extern UINT8 BMS_Ft24VSpy;
- extern UINT8 BMS_FtPACKSelfProt;
- extern UINT8 BMS_FtCharSockTempOver;
- extern UINT8 BMS_FtTempOutCtrl;
- extern UINT8 BMS_StPosHeatRly;
- extern UINT8 BMS_StNegHeatRly;
- extern UINT8 BMS_CharSysNum;
- extern UINT8 BMS_FtCode;
- extern UINT8 BMS_ST1CheckSum;
- extern UINT8 BMS_ST1Counter;
- extern UINT8 BMS_Mode;
- extern UINT8 BMS_AuxRlySt;
- extern UINT8 BMS_BattBalaSt;
- extern UINT8 BMS_CharGunSt;
- extern UINT8 BMS_CharMode;
- extern UINT8 BMS_CharSt;
- extern UINT8 BMS_FtLvl;
- extern UINT8 BMS_FtCellTempDiff;
- extern UINT8 BMS_FtCellTempHigh;
- extern UINT8 BMS_FtPACKOverVolt;
- extern UINT8 BMS_FtPACKUndeVolt;
- extern UINT8 BMS_FtSOCLow;
- extern UINT8 BMS_FtCellOverVolt;
- extern UINT8 BMS_FtCellUndeVolt;
- extern UINT8 BMS_FtIns;
- extern UINT8 BMS_FtCellOverVoltDiff;
- extern UINT8 BMS_FtCharCurrOver;
- extern UINT8 BMS_FtDisCharCurrOver;
- extern UINT8 BMS_FtCellTempLow;
- extern UINT8 BMS_FtBranVoltDifOver;
- extern UINT8 BMS_FtBMSHardWare;
- extern UINT8 BMS_FtSOCHigh;
- extern UINT8 BMS_FtSOCJump;
- extern UINT8 BMS_FtInCom;
- extern UINT8 BMS_FtSysMism;
- extern UINT8 BMS_FtHvIntLock;
- extern UINT8 BMS_FtSmoke;
- extern UINT8 BMS_FtFire;
- extern UINT8 BMS_FtNum;
- extern UINT8 BMS_PackSOC;
- extern UINT8 BMS_PackSOH;
- extern UINT8 BMS_MaxCellTemp;
- extern UINT8 BMS_MinCellTemp;
- extern UINT8 BMS_AverCellTemp;
- extern UINT8 BMS_MaxCellTempCSC;
- extern UINT8 BMS_MaxCellTempNum;
- extern UINT8 BMS_MinCellTempCSC;
- extern UINT8 BMS_MinCellTempNum;
- extern UINT8 BMS_MaxCellVoltCSC;
- extern UINT8 BMS_MaxCellVoltNum;
- extern UINT8 BMS_MinCellVoltCSC;
- extern UINT8 BMS_MinCellVoltNum;
- extern UINT8 BMS_InsDeteSt;
- extern UINT8 BMS_FtCharInsLow;
- extern UINT8 BMS_FtCurrSenr;
- extern UINT8 BMS_FtHeatingFilm;
- extern UINT8 BMS_FtMainLoopPreChar;
- extern UINT8 BMS_FtAuxLoopPreChar;
- extern UINT8 BMS_FtACANLost;
- extern UINT8 BMS_FtDCDC;
- extern UINT8 BMS_FtSOCDif;
- extern UINT8 BMS_FtCellOverDisChar;
- extern UINT8 BMS_FtCharOver;
- extern UINT8 BMS_FtContDisCharCurrOverLoad;
- extern UINT8 BMS_FtContCharCurrOverLoad;
- extern UINT8 BMS_Gun1DCNegTemp;
- extern UINT8 BMS_Gun1DCPosTemp;
- extern UINT8 BMS_Gun2DCNegTemp;
- extern UINT8 BMS_Gun2DCPosTemp;
- extern UINT8 BMS_CurrHeatSt;
- extern UINT8 BMS_CurrCoolSt;
- extern UINT8 BMS_FtCharCnct;
- extern UINT8 BMS_FtOverDisCharCurrDuringChar;
- extern UINT8 BMS_FtCharNTC;
- extern UINT8 BMS_FtELock;
- extern UINT8 BMS_CellVoltFramNum;
- extern UINT8 BMS_CellTempFramNum;
- extern UINT8 BMS_CSC_Code;
- extern UINT8 BMS_CellTemp[64];
- extern UINT8 BMS_Checksum;
- extern UINT8 BMS_PackComp;
- extern UINT8 BMS_BattCodeLeng;
- extern UINT8 BMS_SN[27];
- extern UINT8 BMS_BattType;
- extern UINT8 BMS_CoolType;
- extern UINT8 BMS_CSC_Total;
- extern UINT8 BMS_CellVoltLevel;
- extern UINT8 BMS_CellMinVolt;
- extern UINT8 BMS_CellMaxVolt;
- extern UINT8 BMS_HVBranNum;
- extern UINT8 BMS_SingleHVBranchCellNum;
- extern UINT8 BMS_ReqMode;
- extern UINT8 BMS_HVCmd;
- extern UINT8 BMS_ChgSts;
- extern UINT8 BMS_HVRelaySts;
- extern UINT8 BMS_SetTemp;
- extern UINT8 BMS_Life;
- extern UINT8 BMS_CRC;
- extern UINT8 TMS_WorkStatus;
- extern UINT8 TMS_HVRelayST;
- extern UINT8 TMS_OutletTemp;
- extern UINT8 TMS_InletTemp;
- extern UINT8 TMS_ErrCode;
- extern UINT8 TMS_FaultLevel;
- extern UINT16 BMS_SoftwareVersion;
- extern UINT16 BMS_HardwareVersion;
- extern UINT16 BMS_PackCurr;
- extern UINT16 BMS_MaxCharCurr;
- extern UINT16 BMS_MaxDisCharCurr;
- extern UINT16 BMS_PosIns;
- extern UINT16 BMS_NegIns;
- extern UINT16 BMS_BattVolt;
- extern UINT16 BMS_LinkVolt;
- extern UINT16 BMS_MaxCellVolt;
- extern UINT16 BMS_AverCellVolt;
- extern UINT16 BMS_MinCellVolt;
- extern UINT16 BMS_ContChrgCurr;
- extern UINT16 BMS_ContDisCharCurr;
- extern UINT16 BMS_CharReqVolt;
- extern UINT16 BMS_CharReqCurr;
- extern UINT16 BMS_SysInsRes;
- extern UINT16 BMS_MaxDisCharPwr;
- extern UINT16 BMS_MaxCharPwr;
- extern UINT16 BMS_ContDisCharPwr;
- extern UINT16 BMS_ContCharPwr;
- extern UINT16 BMS_InstEngyCons;
- extern UINT16 BMS_TotalEngyCons;
- extern UINT16 BMS_SOE;
- extern UINT16 BMS_RmanCharTime;
- extern UINT16 BMS_CharNum;
- extern UINT16 BMS_CellVolt[384];
- extern UINT16 BMS_BattRateCap;
- extern UINT16 BMS_BattRateVolt;
- extern UINT16 BMS_BattRateEngy;
- extern UINT16 BMS_CellTotal;
- extern UINT16 BMS_TempTotal;
- extern UINT16 BMS_SingleCharEngy;
- extern UINT16 BMS_SingleCharCapy;
- extern UINT16 BMS_HVVolt;
- extern UINT16 TMS_ReqPow;
- extern UINT32 BMS_TotalCharEngy;
- extern UINT32 BMS_TotalDisCharEngy;
- extern UINT32 BMS_TotalBackCharEngy;
- extern UINT32 BMS_TotalStaCharEngy;
- extern UINT32 BMS_TotalGunCharEngy;
- extern UINT32 BMS_TotalGunCharCapy;
- extern UINT32 BMS_TotalCharCapy;
- extern UINT32 BMS_TotalDisCharCapy;
- extern UINT32 BMS_TotalBackCharCapy;
- extern UINT32 BMS_TotalStaCharCapy;
- extern UINT32 VcuInTable[4];
- extern UINT8 VcuRxFlag[4];
- extern BOOL VcuRxShortError[4];
- extern BOOL VcuRxLongError[4];
- extern UINT8 VcuRxErrorCounter[4];
- extern UINT8 VCU_Num_VIN[17];
- extern UINT8 VCU_St_VinRecv;
- extern UINT8 VCU_St_BattRly;
- extern UINT8 VCU_St_Check;
- extern UINT8 VCU_St_SysIntLock;
- extern UINT8 VCU_St_Veh;
- extern UINT8 VCU_St_Gear;
- extern UINT8 VCU_Ft_Sys;
- extern UINT8 VCU_Ft_Tran;
- extern UINT8 VCU_Ft_BattSys;
- extern UINT8 VCU_State_Veh;
- extern UINT8 VCU_Counter;
- extern UINT8 VCU_SoftVersion;
- extern UINT8 VCU_St_AccPedal;
- extern UINT8 VCU_St_BrakePedal;
- extern UINT8 VCU_St_ParkBrakeSw;
- extern UINT32 EbcOutTable[2][2];
- extern UINT8 EBC_Counter;
- extern UINT8 EBC_LockSt;
- extern UINT8 EBC_CnctSt;
- extern UINT8 EBC_DisCharCnctSt;
- extern UINT8 EBC_CharCnctSt;
- extern UINT8 EBC_FtLvl;
- extern UINT8 EBC_FtCode;
- extern UINT8 EBC_AirPressure;
- extern UINT8 EBC_CharSt;
- extern UINT8 EBC_ActHeatReq;
- extern UINT8 EBC_InhiHVOn;
- extern UINT8 EBC_ReqHVOff;
- extern UINT8 EBC_StopChgCmd;
- extern UINT8 EBC_State;
- extern UINT8 EBC_DisCharPos1Temp;
- extern UINT8 EBC_DischarNeg1Temp;
- extern UINT8 EBC_DisCharPos2Temp;
- extern UINT8 EBC_DisCharNeg2Temp;
- extern UINT8 EBC_ChgPos1Temp;
- extern UINT8 EBC_ChgNeg1Temp;
- extern UINT8 EBC_ChgPos2Temp;
- extern UINT8 EBC_ChgNeg2Temp;
- extern uint16 bcud_E_snglChrg;
- extern uint16 bcud_pct_soc;
- extern uint16 bcud_Q_snglChrg;
- extern uint16 bcud_V_battU;
- extern uint32 bcud_E_accChrg;
- extern uint32 bcud_E_accDischrg;
- extern uint32 bcud_E_accPlugInChrg;
- extern uint32 bcud_E_accRecovry;
- extern uint32 bcud_E_accSwapBatt;
- extern uint32 bcud_Q_accChrg;
- extern uint32 bcud_Q_accDischrg;
- extern uint32 bcud_Q_accPlugInChrg;
- extern uint32 bcud_Q_accRecovry;
- extern uint32 bcud_Q_accSwapBatt;
- extern uint32 vcud_M_accDrv;
- extern uint8 bcud_pct_bcuSoh;
- extern uint8 bcud_st_bcuComun;
- extern uint8 bcud_st_bcuMainRelay;
- extern uint8 bcud_st_bcuTmsLiquid;
- extern uint8 bcud_st_hvWork;
- extern uint8 bcuv_Num_battSn[32];
- extern uint8 ebcd_flg_pluginLockSig;
- extern uint8 ebcd_flg_swapAdmit;
- extern uint8 ebcd_Nr_errMax;
- extern uint8 ebcd_Num_err1;
- extern uint8 ebcd_Num_err2;
- extern uint8 ebcd_st_ebcConnect;
- extern uint8 ebcd_st_ebcLockWork;
- extern uint8 ebcd_st_ebcWork;
- extern uint8 ebcd_st_errTable1;
- extern uint8 ebcd_st_errTable2;
- extern uint8 ebcd_st_errTable3;
- extern uint8 ebcd_st_lockSensor;
- extern uint8 ebcd_st_lockSucJug;
- extern uint8 ebcd_st_pedstSensor;
- extern uint8 ebcd_st_pedstSucJug;
- extern uint8 ebcd_st_pluginLockSig;
- extern uint8 ebcd_st_unlockSensor;
- extern uint8 ebcd_st_unlockSucJug;
- extern uint8 vcud_P_airSensorBack;
- extern uint8 vcud_P_airSensorForward;
- extern uint8 vcud_st_carStart;
- extern uint8 vcud_st_footbrake;
- extern uint8 vcud_st_gear;
- extern uint8 vcud_st_handbrake;
- extern uint8 vcud_st_keyOn;
- extern uint8 vcud_st_Steer;
- extern uint8 vcud_st_vcuComun;
- extern uint8 vcuv_Num_vin[17];
- extern uint8 bled_flg_lockCmd;
- extern uint8 bled_flg_unlockCmd;
- extern uint8 bled_flg_lockCmdForce;
- extern uint8 bled_flg_unlockCmdForce;
- extern uint8 bled_flg_topAscendCmd;
- extern uint8 bled_flg_topDescendCmd;
- extern uint8 bled_flg_topAscendCmdForce;
- extern uint8 bled_flg_topDescendCmdForce;
- extern uint8 bled_flg_openDustReCmd;
- extern uint8 bled_flg_closeDustReCmd;
- extern uint8 bled_flg_Heart;
- extern uint8 bled_flg_getEbcData;
- extern uint8 bled_flg_getVcuData;
- extern uint8 bled_flg_getBmsData;
- extern uint8 bled_flg_handShake;
- extern uint8 bled_flg_swapBattDone;
- extern uint8 bled_flg_backToDrv;
- extern uint8 bled_flg_autoLock;
- extern uint8 bled_flg_autoUnlock;
- extern uint8 bled_flg_toSwapMod;
- extern uint8 bled_flg_safeStopCmd;
- extern uint32 bled_Nr_softVer;
- extern uint8 bled_flg_role;
- extern uint8 bled_flg_bleConn;
- extern uint8 bled_flg_bleDisconn;
- extern uint8 bled_st_dataTrans;
- typedef enum
- {
- DriveMode = 0,
- CommuMode = 1,
- SwapMode = 2
- } WorkType;
- extern uint8 ebcd_flg_Can2SendEnbale;
- extern uint8 ebcd_st_toBleAns;
- extern uint8 ebcd_P_airSensor;
- extern uint8 ebcd_T_plugin[4];
- extern uint8 ebcd_flg_forbidHVOn;
- extern uint8 ebcb_flg_reqHvOff;
- extern uint8 ebcd_flg_LockErr;
- extern uint8 ebcd_flg_dChrgLockErr;
- extern uint8 ebcd_flg_chrgLockErr;
- extern uint8 ebcd_flg_dChgCnctOverTemp;
- extern uint8 ebcd_st_ebcWork;
- extern uint8 ebcd_Nr_errMax;
- extern uint8 ebcd_Num_faultCode;
- extern uint8 ebcd_st_chargingMod;
- extern uint8 ebdc_st_lockUpState;
- extern uint8 ebdc_st_ConnecState;
- extern uint8 m_flg_HVlock1;
- extern uint8 m_flg_HVlock2;
- extern uint16 Test_LockPressure;
- #define EEPDATA_START_SEC_VAR
- #include "MemMap.h"
- extern uint16 ebcd_Nr_swapBatt;
- extern uint16 ebcd_Nr_swapSucBatt;
- extern uint8 ebcd_flg_ebcManCtrlEn;
- extern uint8 ebcd_flg_ebcManCtrlMode;
- extern uint16 LockDelayTime;
- extern uint16 UnlockDelayTime;
- extern uint16 ManuControlTimes;
- #define EEPDATA_STOP_SEC_VAR
- #include "MemMap.h"
- extern const uint8 T_table[240];
- extern const uint32 R_table[240];
- extern const uint8 DataPackCounter[21];
- extern const uint8 DataPackBegin[21];
- #endif
|