AppSignal.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. * @Author : ChenJie
  3. * @Date : 2021-12-28 19:25:29
  4. * @Version : V3.0
  5. * @LastEditors : ChenJie
  6. * @LastEditTime : 2022-01-10 12:05:47
  7. * @Description : file content
  8. * @FilePath : \PLAT\project\ec616_0h00\apps\qx_app\inc\AppSignal.h
  9. */
  10. /*
  11. * @Author : ChenJie
  12. * @Date : 2021-10-14 09:27:15
  13. * @LastEditors : ChenJie
  14. * @LastEditTime : 2021-12-29 10:36:02
  15. * @Description : Global variable definition H file
  16. * @FilePath : \PLAT\project\ec616_0h00\apps\qx_app\inc\AppSignal.h
  17. */
  18. #include "commontypedef.h"
  19. #include "cmsis_os2.h"
  20. #include "AppConfig.h"
  21. #include "osasys.h"
  22. #include "queue.h"
  23. #include "bsp_custom.h"
  24. #include "lwip_config_ec6160h00.h"
  25. #include "BCUDisp.h"
  26. // declear the bool vars
  27. extern volatile BOOL NB_Fota_update_flag;
  28. extern volatile BOOL BMS_Fota_update_flag;
  29. extern volatile BOOL Rentalupdate;
  30. extern UINT32 ErrFlg;
  31. extern BOOL downloadReady;
  32. // extern declear the UINT8 vars
  33. extern UINT8 AvgBattTemp;
  34. extern UINT8 battCellTemp[8];
  35. extern UINT8 battHeatEnableState;
  36. extern UINT8 battMOSSwitchState;
  37. extern UINT8 battSOC;
  38. extern UINT8 battSOH;
  39. extern UINT8 battWorkState;
  40. extern UINT8 BattWorkStateDelay;
  41. extern UINT8 bmsHwVersion;
  42. extern UINT8 bmsSwVersion;
  43. extern UINT8 BMSupdatestatus;
  44. extern UINT8 BuzzerControl;
  45. extern UINT8 CanMsgEnble;
  46. extern UINT8 ChargeForbiddenControl;
  47. extern UINT8 chargerConnectState;
  48. extern UINT8 DisChargeForbiddenControl;
  49. extern UINT8 fastChargeTemp;
  50. extern UINT8 GpsFlag;
  51. extern UINT8 HeatForceControl;
  52. extern UINT8 heatTemp1;
  53. extern UINT8 heatTemp2;
  54. extern UINT8 Lockstatus;
  55. extern UINT8 maxCellTemp;
  56. extern UINT8 minCellTemp;
  57. extern UINT8 MOSTemp;
  58. extern UINT8 nbReservedTemp1;
  59. extern UINT8 nbReservedTemp2;
  60. extern UINT8 normalChargeTemp;
  61. extern UINT8 packTemp;
  62. extern UINT8 PadInterrupt;
  63. extern UINT8 PosFlag;
  64. extern UINT8 RelayForbiddenControl;
  65. extern UINT8 RelayForceControl;
  66. extern UINT8 reservedSignal1;
  67. extern UINT8 reservedSignal2;
  68. extern UINT8 reservedSignal3;
  69. extern UINT8 reservedSignal4;
  70. extern UINT8 reservedSignal5;
  71. extern UINT8 reservedSignal6;
  72. extern UINT8 reservedSignal7;
  73. extern UINT8 reservedSignal8;
  74. extern UINT8 TcpErrorcount;
  75. extern UINT8 TcpSendLen;
  76. extern UINT8 TCPWorkState;
  77. extern UINT8 UartCmdRecvFlag;
  78. extern UINT8 UartErrorFlag;
  79. extern UINT8 UartInterruptcount;
  80. extern UINT8 UartRecvFlag;
  81. extern UINT8 UDSService[2]; // uds 服务
  82. extern UINT8 UDSSubService[2]; // uds 子服务
  83. extern UINT8 UDSSubServiceActionCode[2]; // uds 子服务状态
  84. extern UINT8 UDSSwitch;
  85. extern UINT8 UDSDialogMode;
  86. extern UINT8 SysResetFlag;
  87. // declear the UINT16 vars
  88. extern UINT16 battCellU[28];
  89. extern UINT16 battI;
  90. extern UINT16 battPackVol;
  91. extern UINT16 maxCellVol;
  92. extern UINT16 minCellVol;
  93. extern UINT16 nbHwVersion;
  94. extern UINT16 avrgCellVol;
  95. extern UINT16 ErrorNum[ErrorNumLength];
  96. extern UINT16 updateDifferDataPackageCounter;
  97. extern INT16 xyzData[3];
  98. extern UINT8 otherTempAvg;
  99. extern UINT8 UnSleepFlag;
  100. // declear the UINT32 vars
  101. extern UINT32 battBalanceoInfo;
  102. extern UINT32 battProtectState;
  103. extern UINT32 battWarningState;
  104. extern UINT32 nbSwVersion;
  105. extern UINT32 Battdesigncap;
  106. extern UINT32 PowerVoltage;
  107. extern volatile UINT32 TimeCounter;
  108. // declear other vars
  109. extern AppAlgorithmData BcuDataInfo;
  110. extern AppConfigDataType AppNVMData;
  111. extern AppDataBody AppDataInfo;
  112. extern AppSocketConnectionContext socContext; //网络连接状态
  113. extern osMutexId_t Error_Mutex;
  114. extern process_app gProcess_app;
  115. extern QueueHandle_t GpsRecvHandle;
  116. extern QueueHandle_t UartWriteCmdHandle;