Signal.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #include "commontypedef.h"
  2. #include "cmsis_os2.h"
  3. #define ErrorNumLen 5
  4. extern UINT16 COMOutTable[29];
  5. //declear the UINT8 vars
  6. extern UINT8 battCellTemp[8];
  7. extern UINT8 MOSTemp;
  8. extern UINT8 packTemp;
  9. extern UINT8 fastChargeTemp;
  10. extern UINT8 normalChargeTemp;
  11. extern UINT8 heatTemp1;
  12. extern UINT8 heatTemp2;
  13. extern UINT8 nbReservedTemp1;
  14. extern UINT8 nbReservedTemp2;
  15. extern UINT8 maxCellTemp;
  16. extern UINT8 minCellTemp;
  17. extern UINT8 battSOC;
  18. extern UINT8 battSOH;
  19. extern UINT8 battWorkState;
  20. extern UINT8 bmsSwVersion;
  21. extern UINT8 bmsHwVersion;
  22. extern UINT8 battMOSSwitchState;
  23. extern UINT8 battHeatEnableState;
  24. extern UINT8 RelayControlState;
  25. extern UINT8 BuzzerControl;
  26. extern UINT8 CanMsgFlag;
  27. extern UINT8 VibrationStatus;
  28. extern UINT8 RxInterprut;
  29. extern UINT8 chargerConnectState;
  30. extern UINT8 BattWorkStateDelay;
  31. extern UINT8 HeatForceControl;
  32. extern UINT8 AvgBattTemp;
  33. //declear the UINT16 vars
  34. extern UINT16 battCellU[28];
  35. extern UINT16 minCellVol;
  36. extern UINT16 maxCellVol;
  37. extern UINT16 battPackVol;
  38. extern UINT16 battI;
  39. extern UINT16 nbHwVersion;
  40. extern INT16 xzyDataSend[3];
  41. extern UINT8 Lockstatus;
  42. extern UINT8 Error_count;
  43. //declear the UINT32 vars
  44. extern UINT32 battWarningState;
  45. extern UINT32 nbSwVersion;
  46. extern UINT32 battBalanceoInfo;
  47. extern UINT32 Battdesigncap;
  48. extern UINT32 BattRemainCap;
  49. extern UINT32 battProtectState;
  50. extern UINT16 ErrorNum[ErrorNumLen];//故障代码
  51. extern UINT8 TcpSendLen;
  52. extern osMutexId_t Error_Mutex;
  53. extern INT16 Data_Current ;
  54. extern UINT8 BmsUpdateState;
  55. #ifdef SOC_TEST
  56. extern UINT8 SOC1;
  57. extern UINT8 SOC2;
  58. extern UINT16 Data_33 ;
  59. extern UINT16 Data_34 ;
  60. extern UINT32 Data_35 ;
  61. extern UINT16 Data_37 ;
  62. extern UINT16 Data_38 ;
  63. extern UINT16 Data_39 ;
  64. extern UINT16 Data_3A ;
  65. extern UINT16 Data_3B ;
  66. extern UINT16 Data_3C ;
  67. extern UINT16 Data_3D ;
  68. extern UINT16 Data_3E ;
  69. extern UINT16 Data_3F ;
  70. extern UINT16 Data_40 ;
  71. extern UINT16 Data_41 ;
  72. extern UINT16 Data_42 ;
  73. extern UINT16 Data_43 ;
  74. #endif