cc_cv_charging.h 358 B

1234567891011121314151617181920
  1. #include <stdint.h>
  2. #ifndef CC_CV_CHARGING_H_
  3. #define CC_CV_CHARGING_H_
  4. typedef enum{
  5. STATE_PRE_CHARGE,
  6. STATE_CC_CHARGING,
  7. STATE_CV_CHARGING,
  8. STATE_DISCHARGING,
  9. STATE_FINAL_DISCHARGE,
  10. STATE_ERROR,
  11. STATE_IDLE,
  12. }ChargingState;
  13. void CC_CV_UpdateChargingState(uint8_t slot_id);
  14. void CC_CV_ControlCharging(uint8_t slot_id);
  15. #endif