AppSignal.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /****************************************************************************
  2. *
  3. * Copy right: 2021-, Copyrigths of RLWL Ltd.
  4. * File name: Signal.h
  5. * Description: Global variable definition H file
  6. * History: Rev3.0 2021-07-06
  7. *
  8. ****************************************************************************/
  9. #include "commontypedef.h"
  10. #include "cmsis_os2.h"
  11. #include "AppConfig.h"
  12. #include "osasys.h"
  13. #include "queue.h"
  14. #include "bsp_custom.h"
  15. //declear the bool vars
  16. extern volatile BOOL NB_Fota_update_flag;
  17. //extern declear the UINT8 vars
  18. extern UINT8 TcpErrorcount;
  19. extern UINT8 TCPWorkState;
  20. extern UINT8 TcpSendLen;
  21. extern UINT8 GpsFlag;
  22. extern UINT8 PadInterrupt ;
  23. extern UINT8 Lockstatus;
  24. //declear the UINT16 vars
  25. extern UINT16 nbHwVersion;
  26. extern UINT16 ErrorNum[5];
  27. //declear the UINT32 vars
  28. extern UINT32 nbSwVersion ;
  29. extern volatile UINT32 TimeCounter;
  30. //declear other vars
  31. extern osMutexId_t Error_Mutex;
  32. extern QueueHandle_t GpsRecvHandle;
  33. extern QueueHandle_t UartWriteCmdHandle;
  34. extern AppConfigDataType AppNVMData;
  35. extern AppDataBody AppDataInfo;
  36. extern AppSocketConnectionContext socContext; //网络连接状态
  37. extern process_app gProcess_app;
  38. extern UINT32 COMInTable[133];
  39. extern UINT8 canRxShortError[133];
  40. extern UINT8 canRxLongError[133];
  41. extern UINT8 canRxErrorCounter[133];
  42. extern UINT8 canRxFlag[133];
  43. //declear the UINT8 vars
  44. extern UINT8 csq;
  45. extern UINT8 bmsStatus;
  46. extern UINT8 bmsErrClass;
  47. extern UINT8 chrgConctStatus;
  48. extern UINT8 highVolPwrDwnReq;
  49. extern UINT8 chrgStatus;
  50. extern UINT8 bmsErrNum;
  51. extern UINT8 bmsLife;
  52. extern UINT8 battSoc;
  53. extern UINT8 maxCellTemp;
  54. extern UINT8 minCellTemp;
  55. extern UINT8 avgCellTemp;
  56. extern UINT8 maxVolSubsysCode;
  57. extern UINT8 minVolSubsysCode;
  58. extern UINT8 maxTempSubsysCode;
  59. extern UINT8 maxTempCellCode;
  60. extern UINT8 minTempSubsysCode;
  61. extern UINT8 minTempCellCode;
  62. extern UINT8 numOfChrgableSubsys;
  63. extern UINT8 lengthOfChrgableSysCode;
  64. extern UINT8 chrgableSysCode;
  65. extern UINT8 chrgableSubsysCode;
  66. extern UINT8 numOfBattErr;
  67. extern UINT8 battCellTemp[CELL_TEMP_NUM];
  68. extern UINT8 mainPosRlyStatus;
  69. extern UINT8 preRlyStatus;
  70. extern UINT8 mainNegRlyStatus;
  71. extern UINT8 thrRlyStatus;
  72. extern UINT8 ptc1RlyStatus;
  73. extern UINT8 airCondRlyStatus;
  74. extern UINT8 dcChrg1PosRlyStatus;
  75. extern UINT8 dcChrg1NegRlyStatus;
  76. extern UINT8 dcChrg2PosRlyStatus;
  77. extern UINT8 dcChrg2NegRlyStatus;
  78. extern UINT8 heatPosRlyStatus;
  79. extern UINT8 heatNegRlyStatus;
  80. extern UINT8 coolRlyStatus;
  81. extern UINT8 ptc2RlyStatus;
  82. extern UINT8 mainPosRlyErrStatus;
  83. extern UINT8 preRlyErrStatus;
  84. extern UINT8 mainNegRlyErrStatus;
  85. extern UINT8 thrRlyErrStatus;
  86. extern UINT8 ptc1RlyErrStatus;
  87. extern UINT8 airCondRlyErrStatus;
  88. extern UINT8 dcChrg1PosRlyErrStatus;
  89. extern UINT8 dcChrg1NegRlyErrStatus;
  90. extern UINT8 dcChrg2PosRlyErrStatus;
  91. extern UINT8 dcChrg2NegRlyErrStatus;
  92. extern UINT8 heatPosRlyErrStatus;
  93. extern UINT8 heatNegRlyErrStatus;
  94. extern UINT8 coolRlyErrStatus;
  95. extern UINT8 ptc2RlyErrStatus;
  96. extern UINT8 battSOH;
  97. extern UINT8 SN[24];
  98. extern UINT8 bmsHVOn;
  99. extern UINT8 acRelayStatus;
  100. extern UINT8 ptcRelayStatus;
  101. extern UINT8 mainRelayStatus;
  102. extern UINT8 preRelayStatus;
  103. extern UINT8 ptc2RelayStatus;
  104. extern UINT8 acRelayErrorStatus;
  105. extern UINT8 ptcRelayErrorStatus;
  106. extern UINT8 mainRelayErrorStatus;
  107. extern UINT8 preRelayErrorStatus;
  108. extern UINT8 hvLockErrorStatus;
  109. extern UINT8 ptc2RelayErrorStatus;
  110. extern UINT8 ebcStatus;
  111. extern UINT8 ebcAskHVOn;
  112. extern UINT8 ebcAskHVOff;
  113. extern UINT8 retainLockSignal;
  114. extern UINT8 dischargeLockSignal;
  115. extern UINT8 chargeLockSignal;
  116. extern UINT8 errorClass;
  117. extern UINT8 errorCode1;
  118. extern UINT8 errorCode2;
  119. extern UINT8 chargeFlag;
  120. extern UINT8 exchangeBattAirPressure;
  121. extern UINT8 lifeSignal;
  122. extern UINT8 vehicleStatus;
  123. extern UINT8 currentGearPosition;
  124. extern UINT8 parkingBreakStatus;
  125. extern UINT8 breakingStatus;
  126. extern UINT8 VIN[17];
  127. extern UINT8 frontBreakingPressure;
  128. extern UINT8 backBreakingPressure;
  129. extern UINT8 frontBreakingPressureErrorStatus;
  130. extern UINT8 backBreakingPressureErrorStatus;
  131. extern UINT8 dcdcErrorClass;
  132. extern UINT8 dcdcWorkStatus;
  133. extern UINT8 mainElectricityErrorClass;
  134. extern UINT8 pumpWorkStatus;
  135. extern UINT8 elecAirCompressorErrorStatus;
  136. extern UINT8 elecAirCompressorWrokStatus;
  137. extern UINT8 numOfCellTemp;
  138. //declear the UINT16 vars
  139. extern UINT16 maxChrgCurrAllowed;
  140. extern UINT16 maxDischrgCurrAllowed;
  141. extern UINT16 packTotalVol;
  142. extern UINT16 packTotalCurr;
  143. extern UINT16 insulationR;
  144. extern UINT16 maxCellVol;
  145. extern UINT16 minCellVol;
  146. extern UINT16 maxVolCellCode;
  147. extern UINT16 minVoCelllCode;
  148. extern UINT16 battCellU[CELL_NUM];
  149. extern UINT16 vcuDCVol;
  150. extern UINT16 numOfCells;
  151. //declear the UINT32 vars
  152. extern UINT32 accChrgAh;
  153. extern UINT32 accDischrgAh;
  154. extern UINT32 accChrgkWh;
  155. extern UINT32 accDischrgkWh;
  156. extern UINT32 accRecvryChrgAh;
  157. extern UINT32 accRecvryChrgkWh;
  158. extern UINT32 accStationChrgAh;
  159. extern UINT32 accStationChrgkWh;
  160. extern UINT32 accGunChrgAh;
  161. extern UINT32 accGunChrgkWh;
  162. extern UINT32 sglChrgAh;
  163. extern UINT32 sglChrgkWh;
  164. extern UINT32 ODB;