Module_EvComm.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef MODULE_EVCOMM_H_
  2. #define MODULE_EVCOMM_H_
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. //------------------------------------------------------------------------------
  6. #define COMMUNICATION (2)
  7. #define CHK_VOL_RANGE (50)
  8. #define CHK_CUR_RANGE (20)
  9. #define PLUG (1)
  10. #define UNPLUG (0)
  11. //------------------------------------------------------------------------------
  12. //DS60-120 add
  13. enum EV_LOG_INDEX {
  14. EV_LOG_OUTPUT_CAP_POW = 0,
  15. EV_LOG_OUTPUT_CAP_CUR = 1,
  16. EV_LOG_NOW_OUTPUT_VOL = 2,
  17. EV_LOG_NOW_OUTPUT_CUR = 3,
  18. EV_LOG_EVSE_MAX_VOL = 4,
  19. EV_LOG_EVSE_MAX_CUR = 5,
  20. EV_LOG_MAX_BATT_VOL = 6,
  21. EV_LOG_REAL_CAP_POW = 7,
  22. EV_LOG_SOC = 8,
  23. };
  24. //------------------------------------------------------------------------------
  25. typedef struct StChiilerTemp {
  26. uint8_t Temp[2];
  27. uint8_t Reserved[2];
  28. } ChillerTemp;
  29. //------------------------------------------------------------------------------
  30. int GetCanFd(void);
  31. float GetMaxChargingVol(uint8_t index);
  32. float GetMaxCharginigCur(uint8_t index);
  33. #endif /* MODULE_EVCOMM_H_ */