Module_EvComm.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #endif /* MODULE_EVCOMM_H_ */