AppSignal.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*
  2. * @Author : ChenJie
  3. * @Date : 2021-12-28 19:25:29
  4. * @Version : V3.0
  5. * @LastEditors : ChenJie
  6. * @LastEditTime : 2021-12-29 16:52:03
  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 UINT32 ErrFlg;
  30. extern BOOL downloadReady;
  31. // extern declear the UINT8 vars
  32. extern UINT8 AvgBattTemp;
  33. extern UINT8 battCellTemp[8];
  34. extern UINT8 battHeatEnableState;
  35. extern UINT8 battMOSSwitchState;
  36. extern UINT8 battSOC;
  37. extern UINT8 battSOH;
  38. extern UINT8 battWorkState;
  39. extern UINT8 BattWorkStateDelay;
  40. extern UINT8 bmsHwVersion;
  41. extern UINT8 bmsSwVersion;
  42. extern UINT8 BMSupdatestatus;
  43. extern UINT8 BuzzerControl;
  44. extern UINT8 CanMsgEnble;
  45. extern UINT8 ChargeForbiddenControl;
  46. extern UINT8 chargerConnectState;
  47. extern UINT8 DisChargeForbiddenControl;
  48. extern UINT8 fastChargeTemp;
  49. extern UINT8 GpsFlag;
  50. extern UINT8 HeatForceControl;
  51. extern UINT8 heatTemp1;
  52. extern UINT8 heatTemp2;
  53. extern UINT8 Lockstatus;
  54. extern UINT8 maxCellTemp;
  55. extern UINT8 minCellTemp;
  56. extern UINT8 MOSTemp;
  57. extern UINT8 nbReservedTemp1;
  58. extern UINT8 nbReservedTemp2;
  59. extern UINT8 normalChargeTemp;
  60. extern UINT8 packTemp;
  61. extern UINT8 PadInterrupt;
  62. extern UINT8 PosFlag;
  63. extern UINT8 RelayForbiddenControl;
  64. extern UINT8 RelayForceControl;
  65. extern UINT8 reservedSignal1;
  66. extern UINT8 reservedSignal2;
  67. extern UINT8 reservedSignal3;
  68. extern UINT8 reservedSignal4;
  69. extern UINT8 reservedSignal5;
  70. extern UINT8 reservedSignal6;
  71. extern UINT8 reservedSignal7;
  72. extern UINT8 reservedSignal8;
  73. extern UINT8 TcpErrorcount;
  74. extern UINT8 TcpSendLen;
  75. extern UINT8 TCPWorkState;
  76. extern UINT8 UartCmdRecvFlag;
  77. extern UINT8 UartErrorFlag;
  78. extern UINT8 UartInterruptcount;
  79. extern UINT8 UartRecvFlag;
  80. extern UINT8 UDSService[2]; // uds 服务
  81. extern UINT8 UDSSubService[2]; // uds 子服务
  82. extern UINT8 UDSSubServiceActionCode[2]; // uds 子服务状态
  83. extern UINT8 UDSSwitch;
  84. extern UINT8 UDSDialogMode;
  85. extern UINT8 SysResetFlag;
  86. // declear the UINT16 vars
  87. extern UINT16 battCellU[28];
  88. extern UINT16 battI;
  89. extern UINT16 battPackVol;
  90. extern UINT16 maxCellVol;
  91. extern UINT16 minCellVol;
  92. extern UINT16 nbHwVersion;
  93. extern UINT16 avrgCellVol;
  94. extern UINT16 ErrorNum[ErrorNumLength];
  95. extern UINT16 updateDifferDataPackageCounter;
  96. extern INT16 xyzData[3];
  97. extern UINT8 otherTempAvg;
  98. extern UINT8 UnSleepFlag;
  99. // declear the UINT32 vars
  100. extern UINT32 battBalanceoInfo;
  101. extern UINT32 battProtectState;
  102. extern UINT32 battWarningState;
  103. extern UINT32 nbSwVersion;
  104. extern UINT32 Battdesigncap;
  105. extern UINT32 PowerVoltage;
  106. extern volatile UINT32 TimeCounter;
  107. // declear other vars
  108. extern AppAlgorithmData BcuDataInfo;
  109. extern AppConfigDataType AppNVMData;
  110. extern AppDataBody AppDataInfo;
  111. extern AppSocketConnectionContext socContext; //网络连接状态
  112. extern osMutexId_t Error_Mutex;
  113. extern process_app gProcess_app;
  114. extern QueueHandle_t GpsRecvHandle;
  115. extern QueueHandle_t UartWriteCmdHandle;