AppSignal.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. #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 MOSTemp;
  26. extern UINT8 packTemp;
  27. extern UINT8 fastChargeTemp;
  28. extern UINT8 normalChargeTemp;
  29. extern UINT8 heatTemp1;
  30. extern UINT8 heatTemp2;
  31. extern UINT8 nbReservedTemp1;
  32. extern UINT8 nbReservedTemp2;
  33. extern UINT8 maxCellTemp;
  34. extern UINT8 minCellTemp;
  35. extern UINT8 battSOC;
  36. extern UINT8 battSOH;
  37. extern UINT8 battWorkState;
  38. extern UINT8 bmsSwVersion;
  39. extern UINT8 bmsHwVersion;
  40. extern UINT8 battMOSSwitchState;
  41. extern UINT8 battHeatEnableState;
  42. extern UINT8 reservedSignal1;
  43. extern UINT8 reservedSignal2;
  44. extern UINT8 reservedSignal3;
  45. extern UINT8 reservedSignal4;
  46. extern UINT8 reservedSignal5;
  47. extern UINT8 reservedSignal6;
  48. extern UINT8 reservedSignal7;
  49. extern UINT8 reservedSignal8;
  50. extern UINT8 Lockstatus;
  51. extern UINT8 TcpErrorcount;
  52. extern UINT8 TCPWorkState;
  53. extern UINT8 TcpSendLen;
  54. extern UINT8 CanMsgEnble;
  55. extern UINT8 UDSSwitch;
  56. extern UINT8 UDSSwitch ;
  57. extern UINT8 PosFlag ;
  58. extern UINT8 UartRecvFlag ;
  59. extern UINT8 UartErrorFlag ;
  60. extern UINT8 UartCmdRecvFlag;
  61. extern UINT8 UDSService[2]; //uds 服务
  62. extern UINT8 UDSSubService[2]; // uds 子服务
  63. extern UINT8 UDSSubServiceActionCode[2]; // uds 子服务状态
  64. extern UINT8 GpsFlag;
  65. extern UINT8 BuzzerControl;
  66. extern UINT8 BattWorkStateDelay;
  67. extern UINT8 HeatForceControl;
  68. extern UINT8 PadInterrupt ;
  69. extern UINT8 chargerConnectState;
  70. extern UINT8 BMSupdatestatus;
  71. //declear the UINT16 vars
  72. extern UINT16 battCellU[28];
  73. extern UINT16 minCellVol;
  74. extern UINT16 maxCellVol;
  75. extern UINT16 avrgCellVol;
  76. extern UINT16 battPackVol;
  77. extern UINT16 battI;
  78. extern UINT16 nbHwVersion;
  79. extern UINT16 ErrorNum[ErrorNumLength];
  80. extern UINT16 updateDifferDataPackageCounter;
  81. //declear the UINT32 vars
  82. extern UINT32 battWarningState;
  83. extern UINT32 battProtectState;
  84. extern UINT32 nbSwVersion ;
  85. extern UINT32 battBalanceoInfo;
  86. extern UINT32 Battdesigncap;
  87. extern UINT32 PowerVoltage;
  88. extern volatile UINT32 TimeCounter;
  89. //declear other vars
  90. extern osMutexId_t Error_Mutex;
  91. extern QueueHandle_t GpsRecvHandle;
  92. extern QueueHandle_t UartWriteCmdHandle;
  93. extern AppConfigDataType AppNVMData;
  94. extern AppDataBody AppDataInfo;
  95. extern AppAlgorithmData BcuDataInfo;
  96. extern AppSocketConnectionContext socContext; //网络连接状态
  97. extern process_app gProcess_app;