charge.h 640 B

123456789101112131415161718192021222324252627
  1. #ifndef _CHARGE_H
  2. #define _CHARGE_H
  3. #if HLW_UI
  4. #define CHARGE_DC_IN_FILTER 10
  5. #else
  6. #define CHARGE_DC_IN_FILTER 1
  7. #endif
  8. void lock_code_charge(void);
  9. void unlock_code_charge(void);
  10. void charge_off(void);
  11. void charge_init(void);
  12. void charge_detect(u8 mode);
  13. void charge_set_leakage(u8 sta, u8 level);
  14. void charge_status(u8 sta);
  15. void charge_set_stop_time(u16 stop_time);
  16. void charge_bled_ctrl(void);
  17. void charge_exit(void);
  18. void charge_enter(u8 out_auto_pwron);
  19. u8 charge_dc_detect(void);
  20. u8 charge_charge_on_process(void);
  21. void charge_process(void);
  22. bool charge_power_on_pre(u32 rtccon9);
  23. #endif