CanVar.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. /*
  2. * @Author : ChenJie
  3. * @Date : 2021-12-27 11:21:08
  4. * @Version : V3.0
  5. * @LastEditors : ChenJie
  6. * @LastEditTime : 2022-05-10 18:48:53
  7. * @Description : file content
  8. * @FilePath : \VehicleControl\VehicleControl\src\System\Vehicle\Communication\CanVar.h
  9. */
  10. /*
  11. * CanVar.h
  12. *
  13. * Created on: 2021年12月27日
  14. * 编码
  15. * Author: QiXiang_CHENJIE
  16. */
  17. #ifndef SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_
  18. #define SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_
  19. #include "Std_Types.h"
  20. #include "HardwareLib.h"
  21. #include "AppVar.h"
  22. /************************************************************
  23. *BCU->Ebc解码变量存放区
  24. ************************************************************/
  25. extern UINT32 BcuInTable[28];
  26. extern BOOL BcuRxShortError[28];
  27. extern BOOL BcuRxLongError[28];
  28. extern UINT8 BcuRxErrorCounter[28];
  29. extern UINT8 BcuRxFlag[28];
  30. extern UINT8 BMS_ReqVIN;
  31. extern UINT8 BMS_ReqHVOff;
  32. extern UINT8 BMS_ProtocolEditionH;
  33. extern UINT8 BMS_ProtocolEditionL;
  34. extern UINT8 BMS_CharDevNum;
  35. extern UINT8 BMS_FtPosRly;
  36. extern UINT8 BMS_FtNegRly;
  37. extern UINT8 BMS_FtPosCharRly1;
  38. extern UINT8 BMS_FtNegCharRly1;
  39. extern UINT8 BMS_FtPosCharRly2;
  40. extern UINT8 BMS_FtNegCharRly2;
  41. extern UINT8 BMS_FtHeatRly1;
  42. extern UINT8 BMS_FtHeatRly2;
  43. extern UINT8 BMS_StPosRly;
  44. extern UINT8 BMS_StNegRly;
  45. extern UINT8 BMS_StPreCharRly;
  46. extern UINT8 BMS_StPosCharRly1;
  47. extern UINT8 BMS_StNegCharRly1;
  48. extern UINT8 BMS_StPosCharRly2;
  49. extern UINT8 BMS_StNegCharRly2;
  50. extern UINT8 BMS_FtAuxRelayWeld;
  51. extern UINT8 BMS_BraOpenCirc;
  52. extern UINT8 BMS_FtBackCharCurrOutLim;
  53. extern UINT8 BMS_FtPosRlyOpen;
  54. extern UINT8 BMS_FtNegRlyOpen;
  55. extern UINT8 BMS_FtPosCharRly1Open;
  56. extern UINT8 BMS_FtPosCharRly2Open;
  57. extern UINT8 BMS_FtNegCharRly1Open;
  58. extern UINT8 BMS_FtNegCharRly2Open;
  59. extern UINT8 BMS_FtTMSContClose;
  60. extern UINT8 BMS_FtTMSContOpen;
  61. extern UINT8 BMS_FtTMS;
  62. extern UINT8 BMS_Ft24VSpy;
  63. extern UINT8 BMS_FtPACKSelfProt;
  64. extern UINT8 BMS_FtCharSockTempOver;
  65. extern UINT8 BMS_FtTempOutCtrl;
  66. extern UINT8 BMS_StPosHeatRly;
  67. extern UINT8 BMS_StNegHeatRly;
  68. extern UINT8 BMS_CharSysNum;
  69. extern UINT8 BMS_FtCode;
  70. extern UINT8 BMS_ST1CheckSum;
  71. extern UINT8 BMS_ST1Counter;
  72. extern UINT8 BMS_Mode;
  73. extern UINT8 BMS_AuxRlySt;
  74. extern UINT8 BMS_BattBalaSt;
  75. extern UINT8 BMS_CharGunSt;
  76. extern UINT8 BMS_CharMode;
  77. extern UINT8 BMS_CharSt;
  78. extern UINT8 BMS_FtLvl;
  79. extern UINT8 BMS_FtCellTempDiff;
  80. extern UINT8 BMS_FtCellTempHigh;
  81. extern UINT8 BMS_FtPACKOverVolt;
  82. extern UINT8 BMS_FtPACKUndeVolt;
  83. extern UINT8 BMS_FtSOCLow;
  84. extern UINT8 BMS_FtCellOverVolt;
  85. extern UINT8 BMS_FtCellUndeVolt;
  86. extern UINT8 BMS_FtIns;
  87. extern UINT8 BMS_FtCellOverVoltDiff;
  88. extern UINT8 BMS_FtCharCurrOver;
  89. extern UINT8 BMS_FtDisCharCurrOver;
  90. extern UINT8 BMS_FtCellTempLow;
  91. extern UINT8 BMS_FtBranVoltDifOver;
  92. extern UINT8 BMS_FtBMSHardWare;
  93. extern UINT8 BMS_FtSOCHigh;
  94. extern UINT8 BMS_FtSOCJump;
  95. extern UINT8 BMS_FtInCom;
  96. extern UINT8 BMS_FtSysMism;
  97. extern UINT8 BMS_FtHvIntLock;
  98. extern UINT8 BMS_FtSmoke;
  99. extern UINT8 BMS_FtFire;
  100. extern UINT8 BMS_FtNum;
  101. extern UINT8 BMS_PackSOC;
  102. extern UINT8 BMS_PackSOH;
  103. extern UINT8 BMS_MaxCellTemp;
  104. extern UINT8 BMS_MinCellTemp;
  105. extern UINT8 BMS_AverCellTemp;
  106. extern UINT8 BMS_MaxCellTempCSC;
  107. extern UINT8 BMS_MaxCellTempNum;
  108. extern UINT8 BMS_MinCellTempCSC;
  109. extern UINT8 BMS_MinCellTempNum;
  110. extern UINT8 BMS_MaxCellVoltCSC;
  111. extern UINT8 BMS_MaxCellVoltNum;
  112. extern UINT8 BMS_MinCellVoltCSC;
  113. extern UINT8 BMS_MinCellVoltNum;
  114. extern UINT8 BMS_InsDeteSt;
  115. extern UINT8 BMS_FtCharInsLow;
  116. extern UINT8 BMS_FtCurrSenr;
  117. extern UINT8 BMS_FtHeatingFilm;
  118. extern UINT8 BMS_FtMainLoopPreChar;
  119. extern UINT8 BMS_FtAuxLoopPreChar;
  120. extern UINT8 BMS_FtACANLost;
  121. extern UINT8 BMS_FtDCDC;
  122. extern UINT8 BMS_FtSOCDif;
  123. extern UINT8 BMS_FtCellOverDisChar;
  124. extern UINT8 BMS_FtCharOver;
  125. extern UINT8 BMS_FtContDisCharCurrOverLoad;
  126. extern UINT8 BMS_FtContCharCurrOverLoad;
  127. extern UINT8 BMS_Gun1DCNegTemp;
  128. extern UINT8 BMS_Gun1DCPosTemp;
  129. extern UINT8 BMS_Gun2DCNegTemp;
  130. extern UINT8 BMS_Gun2DCPosTemp;
  131. extern UINT8 BMS_CurrHeatSt;
  132. extern UINT8 BMS_CurrCoolSt;
  133. extern UINT8 BMS_FtCharCnct;
  134. extern UINT8 BMS_FtOverDisCharCurrDuringChar;
  135. extern UINT8 BMS_FtCharNTC;
  136. extern UINT8 BMS_FtELock;
  137. extern UINT8 BMS_CellVoltFramNum;
  138. extern UINT8 BMS_CellTempFramNum;
  139. extern UINT8 BMS_CSC_Code;
  140. extern UINT8 BMS_CellTemp[64];
  141. extern UINT8 BMS_Checksum;
  142. extern UINT8 BMS_PackComp;
  143. extern UINT8 BMS_BattCodeLeng;
  144. extern UINT8 BMS_SN[27];
  145. extern UINT8 BMS_BattType;
  146. extern UINT8 BMS_CoolType;
  147. extern UINT8 BMS_CSC_Total;
  148. extern UINT8 BMS_CellVoltLevel;
  149. extern UINT8 BMS_CellMinVolt;
  150. extern UINT8 BMS_CellMaxVolt;
  151. extern UINT8 BMS_HVBranNum;
  152. extern UINT8 BMS_SingleHVBranchCellNum;
  153. extern UINT8 BMS_ReqMode;
  154. extern UINT8 BMS_HVCmd;
  155. extern UINT8 BMS_ChgSts;
  156. extern UINT8 BMS_HVRelaySts;
  157. extern UINT8 BMS_SetTemp;
  158. extern UINT8 BMS_Life;
  159. extern UINT8 BMS_CRC;
  160. extern UINT8 TMS_WorkStatus;
  161. extern UINT8 TMS_HVRelayST;
  162. extern UINT8 TMS_OutletTemp;
  163. extern UINT8 TMS_InletTemp;
  164. extern UINT8 TMS_ErrCode;
  165. extern UINT8 TMS_FaultLevel;
  166. extern UINT16 BMS_SoftwareVersion;
  167. extern UINT16 BMS_HardwareVersion;
  168. extern UINT16 BMS_PackCurr;
  169. extern UINT16 BMS_MaxCharCurr;
  170. extern UINT16 BMS_MaxDisCharCurr;
  171. extern UINT16 BMS_PosIns;
  172. extern UINT16 BMS_NegIns;
  173. extern UINT16 BMS_BattVolt;
  174. extern UINT16 BMS_LinkVolt;
  175. extern UINT16 BMS_MaxCellVolt;
  176. extern UINT16 BMS_AverCellVolt;
  177. extern UINT16 BMS_MinCellVolt;
  178. extern UINT16 BMS_ContChrgCurr;
  179. extern UINT16 BMS_ContDisCharCurr;
  180. extern UINT16 BMS_CharReqVolt;
  181. extern UINT16 BMS_CharReqCurr;
  182. extern UINT16 BMS_SysInsRes;
  183. extern UINT16 BMS_MaxDisCharPwr;
  184. extern UINT16 BMS_MaxCharPwr;
  185. extern UINT16 BMS_ContDisCharPwr;
  186. extern UINT16 BMS_ContCharPwr;
  187. extern UINT16 BMS_InstEngyCons;
  188. extern UINT16 BMS_TotalEngyCons;
  189. extern UINT16 BMS_SOE;
  190. extern UINT16 BMS_RmanCharTime;
  191. extern UINT16 BMS_CharNum;
  192. extern UINT16 BMS_CellVolt[384];
  193. extern UINT16 BMS_BattRateCap;
  194. extern UINT16 BMS_BattRateVolt;
  195. extern UINT16 BMS_BattRateEngy;
  196. extern UINT16 BMS_CellTotal;
  197. extern UINT16 BMS_TempTotal;
  198. extern UINT16 BMS_SingleCharEngy;
  199. extern UINT16 BMS_SingleCharCapy;
  200. extern UINT16 BMS_HVVolt;
  201. extern UINT16 TMS_ReqPow;
  202. extern UINT32 BMS_TotalCharEngy;
  203. extern UINT32 BMS_TotalDisCharEngy;
  204. extern UINT32 BMS_TotalBackCharEngy;
  205. extern UINT32 BMS_TotalStaCharEngy;
  206. extern UINT32 BMS_TotalGunCharEngy;
  207. extern UINT32 BMS_TotalGunCharCapy;
  208. extern UINT32 BMS_TotalCharCapy;
  209. extern UINT32 BMS_TotalDisCharCapy;
  210. extern UINT32 BMS_TotalBackCharCapy;
  211. extern UINT32 BMS_TotalStaCharCapy;
  212. /*Vcu->Ebc*********************************/
  213. extern UINT32 VcuInTable[4];
  214. extern UINT8 VcuRxFlag[4];
  215. extern BOOL VcuRxShortError[4];
  216. extern BOOL VcuRxLongError[4];
  217. extern UINT8 VcuRxErrorCounter[4];
  218. extern UINT8 VCU_Num_VIN[17];
  219. extern UINT8 VCU_St_VinRecv;
  220. extern UINT8 VCU_St_BattRly;
  221. extern UINT8 VCU_St_Check;
  222. extern UINT8 VCU_St_SysIntLock;
  223. extern UINT8 VCU_St_Veh;
  224. extern UINT8 VCU_St_Gear;
  225. extern UINT8 VCU_Ft_Sys;
  226. extern UINT8 VCU_Ft_Tran;
  227. extern UINT8 VCU_Ft_BattSys;
  228. extern UINT8 VCU_State_Veh;
  229. extern UINT8 VCU_Counter;
  230. extern UINT8 VCU_SoftVersion;
  231. extern UINT8 VCU_St_AccPedal;
  232. extern UINT8 VCU_St_BrakePedal;
  233. extern UINT8 VCU_St_ParkBrakeSw;
  234. /**********************************/
  235. extern UINT32 EbcOutTable[2][2];
  236. extern UINT8 EBC_Counter;
  237. extern UINT8 EBC_LockSt;
  238. extern UINT8 EBC_CnctSt;
  239. extern UINT8 EBC_DisCharCnctSt;
  240. extern UINT8 EBC_CharCnctSt;
  241. extern UINT8 EBC_FtLvl;
  242. extern UINT8 EBC_FtCode;
  243. extern UINT8 EBC_AirPressure;
  244. extern UINT8 EBC_CharSt;
  245. extern UINT8 EBC_ActHeatReq;
  246. extern UINT8 EBC_InhiHVOn;
  247. extern UINT8 EBC_ReqHVOff;
  248. extern UINT8 EBC_StopChgCmd;
  249. extern UINT8 EBC_State;
  250. extern UINT8 EBC_DisCharPos1Temp;
  251. extern UINT8 EBC_DischarNeg1Temp;
  252. extern UINT8 EBC_DisCharPos2Temp;
  253. extern UINT8 EBC_DisCharNeg2Temp;
  254. extern UINT8 EBC_ChgPos1Temp;
  255. extern UINT8 EBC_ChgNeg1Temp;
  256. extern UINT8 EBC_ChgPos2Temp;
  257. extern UINT8 EBC_ChgNeg2Temp;
  258. /*************************************************************
  259. *Ebc->ble组码变量存放区
  260. ************************************************************/
  261. // Ble
  262. extern uint16 bcud_E_snglChrg; //单次充电能量,精度0.1kwh
  263. extern uint16 bcud_pct_soc; //电池SOC,精度0.1
  264. extern uint16 bcud_Q_snglChrg; //单次充电容量,精度0.1Ah
  265. extern uint16 bcud_V_battU; //电池电压 精度0.1V
  266. extern uint32 bcud_E_accChrg; //累计充电能量,精度0.1kwh
  267. extern uint32 bcud_E_accDischrg; //累计放电能量,精度0.1kwh
  268. extern uint32 bcud_E_accPlugInChrg; //累计插枪充电能量,精度0.1kwh
  269. extern uint32 bcud_E_accRecovry; //累计回收能量,精度0.1kwh
  270. extern uint32 bcud_E_accSwapBatt; //累计换电站能量,精度0.1kwh
  271. extern uint32 bcud_Q_accChrg; //累计充电容量,精度0.1ah
  272. extern uint32 bcud_Q_accDischrg; //累计放电容量,精度0.1ah
  273. extern uint32 bcud_Q_accPlugInChrg; //累计插枪充电容量,精度0.1ah
  274. extern uint32 bcud_Q_accRecovry; //累计回收容量,精度0.1ah
  275. extern uint32 bcud_Q_accSwapBatt; //累计换电站容量,精度0.1ah
  276. extern uint32 vcud_M_accDrv; //累计行驶里程,精度0.1km
  277. extern uint8 bcud_pct_bcuSoh; //电池Soh,精度0.4%
  278. extern uint8 bcud_st_bcuComun; //电池通讯状态,0-通信中断,1-通信正常
  279. extern uint8 bcud_st_bcuMainRelay; //主继电器信号,0-保留 1-断开,2-关闭 3-异常
  280. extern uint8 bcud_st_bcuTmsLiquid; //热管理液位状态,1-液位正常,0-液位过低
  281. extern uint8 bcud_st_hvWork; //电池高压状态,0-高压开启 1-预充,2-高压关断,3-高压上电故障
  282. extern uint8 bcuv_Num_battSn[32]; //电池SN号码
  283. extern uint8 ebcd_flg_pluginLockSig; //互锁接插件信号状态,1-触发,0-无触发
  284. extern uint8 ebcd_flg_swapAdmit; //允许换电判断:0-不允许,1-允许
  285. extern uint8 ebcd_Nr_errMax; //故障等级:当前故障最大等级
  286. extern uint8 ebcd_Num_err1; //故障码1
  287. extern uint8 ebcd_Num_err2; //故障码2
  288. extern uint8 ebcd_st_ebcConnect; // Ebc通讯模式,0-无线蓝牙,1-有线连接 ,默认0
  289. extern uint8 ebcd_st_ebcLockWork; // Ebc解锁模式,0-单步模式,1-自动模式
  290. extern uint8 ebcd_st_ebcWork; // Ebc当前状态 0-行车,1-通讯,2-换电
  291. extern uint8 ebcd_st_errTable1; //故障表1,bit0-气压异常,bit1-液位异常,bit2-Flash读取异常
  292. extern uint8 ebcd_st_errTable2; //故障表2,bit0-互锁异常,bit1-整车CAN异常,bit2-电池CAN异常,bit3-锁钩异常,bit4-升降机异常,bit5-电池位置异常
  293. extern uint8 ebcd_st_errTable3; //故障表3,bit0-放电互锁异常,bit1-充电互锁异常,bit2-整车高压互锁异常
  294. extern uint8 ebcd_st_lockSensor; //锁紧传感器信号:bit0-bit3:传感器0-3的状态每,bit:1-触发,0-不触发
  295. extern uint8 ebcd_st_lockSucJug; //锁紧完成判断:0-完全未锁紧,1-完全锁紧,2-未完全锁紧"
  296. extern uint8 ebcd_st_pedstSensor; //底座落座传感器:bit0-bit1:传感器0-1的状态,每bit:1-触发,0-无触发
  297. extern uint8 ebcd_st_pedstSucJug; //电池底座到位判断:0-完全未到位,1-完全到位,2-未完全到位
  298. extern uint8 ebcd_st_pluginLockSig; //互锁接插件信号具体状态,1-触发,0-无触发
  299. extern uint8 ebcd_st_unlockSensor; //解锁传感器信号:bit0-bit3:传感器0-3的状态每,bit:1-触发,0-不触发
  300. extern uint8 ebcd_st_unlockSucJug; //解锁完成判断:0-完全未解锁,1-完全解锁,2-未完全解锁
  301. // extern uint8 vcud_P_airSensor; //压力传感器气压值:单位Mpa,精度0.01Mpa
  302. extern uint8 vcud_P_airSensorBack; //后桥气压值,单位Mpa,精度0.01Mpa
  303. extern uint8 vcud_P_airSensorForward; //前桥气压值,单位Mpa,精度0.01Mpa
  304. extern uint8 vcud_st_carStart; //整车启动状态,0001-车辆启动状态,0010-熄火,0011-其他状态,1111-无效
  305. extern uint8 vcud_st_footbrake; //脚刹信号,0-无效,1-有效
  306. extern uint8 vcud_st_gear; //档位信号,FF-倒挡(R),0-空挡(N),X-前进档(DX)X取1-12
  307. extern uint8 vcud_st_handbrake; //手刹信号,0-无效,1-有效
  308. extern uint8 vcud_st_keyOn; //钥匙信号,1-上电,0-下电
  309. extern uint8 vcud_st_Steer; //方向盘信号,bit0-左侧转向灯,bit1-右侧转向灯,每bit 0-OFF,1-ON
  310. extern uint8 vcud_st_vcuComun; // vcu通讯状态,0-通信中断,1-通信正常
  311. extern uint8 vcuv_Num_vin[17]; // VIN码
  312. extern uint8 bled_flg_lockCmd; //锁钩电磁阀锁紧命令,1-有效,0-无效
  313. extern uint8 bled_flg_unlockCmd; //锁钩电磁阀解锁命令,1-有效,0-无效
  314. extern uint8 bled_flg_lockCmdForce; //锁钩电磁阀锁紧强制命令,1-有效,0-无效
  315. extern uint8 bled_flg_unlockCmdForce; //锁钩电磁阀解锁强制命令,1-有效,0-无效
  316. extern uint8 bled_flg_topAscendCmd; //顶板上升命令,1-有效,0-无效
  317. extern uint8 bled_flg_topDescendCmd; //顶板下降命令,1-有效,0-无效
  318. extern uint8 bled_flg_topAscendCmdForce; //顶板强制上升命令,1-有效,0-无效
  319. extern uint8 bled_flg_topDescendCmdForce; //顶板强制下降命令,1-有效,0-无效
  320. extern uint8 bled_flg_openDustReCmd; //除尘打开指令,1-有效,0-无效
  321. extern uint8 bled_flg_closeDustReCmd; //除尘关闭指令,1-有效,0-无效
  322. extern uint8 bled_flg_Heart; //心跳维持指令
  323. extern uint8 bled_flg_getEbcData; //获取ebc数据指令
  324. extern uint8 bled_flg_getVcuData; //获取vcu数据指令
  325. extern uint8 bled_flg_getBmsData; //获取bms数据指令
  326. extern uint8 bled_flg_handShake; //握手指令
  327. extern uint8 bled_flg_swapBattDone; //换电完成指令
  328. extern uint8 bled_flg_backToDrv; //回到行驶状态指令
  329. extern uint8 bled_flg_autoLock; //自动锁定指令
  330. extern uint8 bled_flg_autoUnlock; //自动解锁指令
  331. extern uint8 bled_flg_toSwapMod; //换到换电状态
  332. extern uint8 bled_flg_safeStopCmd; //急停指令
  333. extern uint32 bled_Nr_softVer; // BLE软件版本
  334. extern uint8 bled_flg_role; // ble的主从模式 01-主,02-从
  335. extern uint8 bled_flg_bleConn; // ble蓝牙连接状态
  336. extern uint8 bled_flg_bleDisconn; // ble蓝牙断开状态
  337. extern uint8 bled_st_dataTrans; //蓝牙数据传输状态
  338. //正式变量
  339. typedef enum
  340. {
  341. DriveMode = 0,
  342. CommuMode = 1,
  343. SwapMode = 2
  344. } WorkType;
  345. extern uint8 ebcd_flg_Can2SendEnbale;
  346. extern uint8 ebcd_st_toBleAns;
  347. extern uint8 ebcd_P_airSensor;
  348. extern uint8 ebcd_T_plugin[4]; //四个接插件温度
  349. extern uint8 ebcd_flg_forbidHVOn; //禁止高压上电
  350. extern uint8 ebcb_flg_reqHvOff; //请求高压下电
  351. extern uint8 ebcd_flg_LockErr; //锁紧机构故障状态
  352. extern uint8 ebcd_flg_dChrgLockErr; //放电互锁故障状态
  353. extern uint8 ebcd_flg_chrgLockErr; //充电互锁故障状态
  354. extern uint8 ebcd_flg_dChgCnctOverTemp; //放电连接器过温标志
  355. extern uint8 ebcd_st_ebcWork; // Ebc当前状态 0-行车,1-通讯,2-换电
  356. extern uint8 ebcd_Nr_errMax; //故障等级:当前故障最大等级
  357. extern uint8 ebcd_Num_faultCode; // ebc故障码,未定义
  358. extern uint8 ebcd_st_chargingMod; //充电模式,1-车载充电,2-换电站充电
  359. extern uint8 ebdc_st_lockUpState; //锁止机构状态,0-故障,1-解锁成功,2-上锁成功
  360. extern uint8 ebdc_st_ConnecState; //换电连接器状态(充电回路&放电回路同时闭合代表闭合,有一路断开则为断开),0_未连接 1_连接
  361. extern uint8 m_flg_HVlock1; //互锁状态1
  362. extern uint8 m_flg_HVlock2; //互锁状态2
  363. extern uint16 Test_LockPressure;
  364. extern uint8 BattHvCtl;
  365. #define EEPDATA_START_SEC_VAR
  366. #include "MemMap.h"
  367. extern uint16 ebcd_Nr_swapBatt; //换电次数
  368. extern uint16 ebcd_Nr_swapSucBatt; //换电成功次数
  369. extern uint8 ebcd_flg_ebcManCtrlEn; // EBC手动控制使能
  370. extern uint8 ebcd_flg_ebcManCtrlMode; // EBC手动控制模式
  371. extern uint16 LockDelayTime; //锁定延时时间(传感器到位以后延时多少时间确定为锁定成功
  372. extern uint16 UnlockDelayTime; //解锁延时时间(传感器到位以后延时多少时间确定为解锁成功
  373. extern uint16 ManuControlTimes;
  374. extern uint8 sfmv_Num_FltEEsave;
  375. #define EEPDATA_STOP_SEC_VAR
  376. #include "MemMap.h"
  377. extern const uint8 T_table[240];
  378. extern const uint32 R_table[240];
  379. extern const uint8 DataPackCounter[21];
  380. extern const uint8 DataPackBegin[21];
  381. #endif /* SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_ */