AppSignal.h 3.1 KB

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