cc_cv_charging.h 420 B

1234567891011121314151617181920212223
  1. #ifndef CC_CV_CHARGING_H_
  2. #define CC_CV_CHARGING_H_
  3. #include <stdint.h>
  4. #include "battery.h"
  5. #include "adc.h"
  6. #include "dac.h"
  7. typedef enum{
  8. STATE_PRE_CHARGE,
  9. STATE_TRICKLE_CHARGE,
  10. STATE_CC_CHARGING,
  11. STATE_CV_CHARGING,
  12. STATE_DISCHARGING,
  13. STATE_FINAL_DISCHARGE,
  14. STATE_ERROR
  15. }ChargingState;
  16. void CC_CV_UpdateChargingState(uint8_t slot_id);
  17. void CC_CV_ControlCharging(uint8 slot_id);
  18. #endif