/* * @Author : ChenJie * @Date : 2021-12-27 11:21:08 * @Version : V3.0 * @LastEditors : ChenJie * @LastEditTime : 2022-05-10 18:48:53 * @Description : file content * @FilePath : \VehicleControl\VehicleControl\src\System\Vehicle\Communication\CanVar.h */ /* * CanVar.h * * Created on: 2021年12月27日 * 编码 * Author: QiXiang_CHENJIE */ #ifndef SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_ #define SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_ #include "Std_Types.h" #include "HardwareLib.h" #include "AppVar.h" /************************************************************ *CAN0->BMC解码变量存放区 ************************************************************/ extern UINT32 Can0InTable[2]; extern BOOL Can0RxShortError[2]; extern BOOL Can0RxLongError[2]; extern UINT8 Can0RxErrorCounter[2]; extern UINT8 Can0RxFlag[2]; extern UINT8 gashighLevel_gf1 ; extern UINT8 gaslowLevel_gf1 ; extern UINT8 temp_gf1 ; extern UINT8 warningLevel_gf1 ; extern UINT8 workMode_gf1 ; extern UINT8 fumesHigh_gf1 ; extern UINT8 fumesLow_gf1 ; extern UINT8 gashighLevel_gf2 ; extern UINT8 gaslowLevel_gf2 ; extern UINT8 temp_gf2 ; extern UINT8 warningLevel_gf2 ; extern UINT8 workMode_gf2 ; extern UINT8 fumesHigh_gf2 ; extern UINT8 fumesLow_gf2 ; /************************************************************ *CAN1->BMC解码变量存放区 ************************************************************/ extern UINT32 Can1InTable[1]; extern BOOL Can1RxShortError[1]; extern BOOL Can1RxLongError[1]; extern UINT8 Can1RxErrorCounter[1]; extern UINT8 Can1RxFlag[1]; extern UINT8 chrgModulePwrCtrl ; extern UINT8 baseSwitchCtrl ; extern UINT8 paraChrgCtrlState ; extern UINT8 chrgStartState ; extern UINT8 chrgStopState ; /************************************************************ *BMC->CAN2解码变量存放区 ************************************************************/ extern UINT32 Can1OutTable[4][4]; extern UINT8 connectorHvlock1; extern UINT8 connectorHvlock2; extern UINT8 chrgModuelPwrCtlFB; extern UINT8 paraChrgCtlFB; extern UINT8 outToChrgCtlFB_A ; extern UINT8 outToBaseCtlFB_A ; extern UINT8 outToChrgCtlFB_B ; extern UINT8 outToBaseCtlFB_B ; extern UINT8 fuseActionFB_A ; extern UINT8 fuseActionFB_B ; extern UINT8 sigSwitchReadyFB_A ; extern UINT8 sigSwitchReadyFB_B ; extern UINT8 ctrlFXFB1 ; extern UINT8 ctrlFXFB2 ; extern UINT8 conn1Temp1 ; extern UINT8 conn1Temp2 ; extern UINT8 conn2Temp1 ; extern UINT8 conn2Temp2 ; extern UINT8 chrgGunTemp1_A; extern UINT8 chrgGunTemp2_A ; extern UINT8 chrgGunTemp1_B; extern UINT8 chrgGunTemp2_B ; extern UINT8 chrgBoxTemp1 ; extern UINT8 chrgBoxTemp2 ; extern UINT8 chrgBoxGasOver1 ; extern UINT8 chrgBoxGasOver2 ; extern UINT8 chrgBoxFumesOver1 ; extern UINT8 chrgBoxFumesOver2 ; extern UINT8 chrgBox1Warning ; extern UINT8 chrgBox2Warning ; #define EEPDATA_START_SEC_VAR #include "MemMap.h" #define EEPDATA_STOP_SEC_VAR #include "MemMap.h" extern const uint8 T_table[240]; extern const uint32 R_table[240]; #endif /* SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_ */