CanVar.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. *CAN0->BMC解码变量存放区
  24. ************************************************************/
  25. extern UINT32 Can0InTable[2];
  26. extern BOOL Can0RxShortError[2];
  27. extern BOOL Can0RxLongError[2];
  28. extern UINT8 Can0RxErrorCounter[2];
  29. extern UINT8 Can0RxFlag[2];
  30. extern UINT8 gashighLevel_gf1 ;
  31. extern UINT8 gaslowLevel_gf1 ;
  32. extern UINT8 temp_gf1 ;
  33. extern UINT8 warningLevel_gf1 ;
  34. extern UINT8 workMode_gf1 ;
  35. extern UINT8 fumesHigh_gf1 ;
  36. extern UINT8 fumesLow_gf1 ;
  37. extern UINT8 gashighLevel_gf2 ;
  38. extern UINT8 gaslowLevel_gf2 ;
  39. extern UINT8 temp_gf2 ;
  40. extern UINT8 warningLevel_gf2 ;
  41. extern UINT8 workMode_gf2 ;
  42. extern UINT8 fumesHigh_gf2 ;
  43. extern UINT8 fumesLow_gf2 ;
  44. /************************************************************
  45. *CAN1->BMC解码变量存放区
  46. ************************************************************/
  47. extern UINT32 Can1InTable[1];
  48. extern BOOL Can1RxShortError[1];
  49. extern BOOL Can1RxLongError[1];
  50. extern UINT8 Can1RxErrorCounter[1];
  51. extern UINT8 Can1RxFlag[1];
  52. extern UINT8 chrgModulePwrCtrl ;
  53. extern UINT8 baseSwitchCtrl ;
  54. extern UINT8 paraChrgCtrlState ;
  55. extern UINT8 chrgStartState ;
  56. extern UINT8 chrgStopState ;
  57. /************************************************************
  58. *BMC->CAN2解码变量存放区
  59. ************************************************************/
  60. extern UINT32 Can1OutTable[4][4];
  61. extern UINT8 connectorHvlock1;
  62. extern UINT8 connectorHvlock2;
  63. extern UINT8 chrgModuelPwrCtlFB;
  64. extern UINT8 paraChrgCtlFB;
  65. extern UINT8 outToChrgCtlFB_A ;
  66. extern UINT8 outToBaseCtlFB_A ;
  67. extern UINT8 outToChrgCtlFB_B ;
  68. extern UINT8 outToBaseCtlFB_B ;
  69. extern UINT8 fuseActionFB_A ;
  70. extern UINT8 fuseActionFB_B ;
  71. extern UINT8 sigSwitchReadyFB_A ;
  72. extern UINT8 sigSwitchReadyFB_B ;
  73. extern UINT8 ctrlFXFB1 ;
  74. extern UINT8 ctrlFXFB2 ;
  75. extern UINT8 conn1Temp1 ;
  76. extern UINT8 conn1Temp2 ;
  77. extern UINT8 conn2Temp1 ;
  78. extern UINT8 conn2Temp2 ;
  79. extern UINT8 chrgGunTemp1_A;
  80. extern UINT8 chrgGunTemp2_A ;
  81. extern UINT8 chrgGunTemp1_B;
  82. extern UINT8 chrgGunTemp2_B ;
  83. extern UINT8 chrgBoxTemp1 ;
  84. extern UINT8 chrgBoxTemp2 ;
  85. extern UINT8 chrgBoxGasOver1 ;
  86. extern UINT8 chrgBoxGasOver2 ;
  87. extern UINT8 chrgBoxFumesOver1 ;
  88. extern UINT8 chrgBoxFumesOver2 ;
  89. extern UINT8 chrgBox1Warning ;
  90. extern UINT8 chrgBox2Warning ;
  91. #define EEPDATA_START_SEC_VAR
  92. #include "MemMap.h"
  93. #define EEPDATA_STOP_SEC_VAR
  94. #include "MemMap.h"
  95. extern const uint8 T_table[240];
  96. extern const uint32 R_table[240];
  97. #endif /* SYSTEM_VEHICLE_COMMUNICATION_CANVAR_H_ */