AppSignal.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * @Author : ChenJie
  3. * @Date : 2021-10-14 09:27:15
  4. * @LastEditors : ChenJie
  5. * @LastEditTime : 2021-11-12 16:11:45
  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. //declear the UINT16 vars
  77. extern UINT16 battCellU[28];
  78. extern UINT16 battI;
  79. extern UINT16 battPackVol;
  80. extern UINT16 maxCellVol;
  81. extern UINT16 minCellVol;
  82. extern UINT16 nbHwVersion;
  83. extern UINT16 avrgCellVol;
  84. extern UINT16 ErrorNum[ErrorNumLength];
  85. extern UINT16 updateDifferDataPackageCounter;
  86. extern INT16 xyzData[3];
  87. extern UINT8 otherTempAvg;
  88. //declear the UINT32 vars
  89. extern UINT32 battBalanceoInfo;
  90. extern UINT32 battProtectState;
  91. extern UINT32 battWarningState;
  92. extern UINT32 nbSwVersion;
  93. extern UINT32 Battdesigncap;
  94. extern UINT32 PowerVoltage;
  95. extern volatile UINT32 TimeCounter;
  96. //declear other vars
  97. extern AppAlgorithmData BcuDataInfo;
  98. extern AppConfigDataType AppNVMData;
  99. extern AppDataBody AppDataInfo;
  100. extern AppSocketConnectionContext socContext; //网络连接状态
  101. extern osMutexId_t Error_Mutex;
  102. extern process_app gProcess_app;
  103. extern QueueHandle_t GpsRecvHandle;
  104. extern QueueHandle_t UartWriteCmdHandle;