hal_charge.h 422 B

12345678910111213141516171819202122
  1. #ifndef __hal_charge_h__
  2. #define __hal_charge_h__
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include "sdk_common.h"
  7. #include "SEGGER_RTT.h"
  8. #include "usr_config.h"
  9. #define CHARGE_ADC 1800
  10. #define DISCON_L_MAX_ADC 1450
  11. #define DISCON_L_MIN_ADC 1300
  12. #define CONN_MAX_ADC 1000
  13. #define CONN_MIN_ADC 500
  14. #define DISCON_R_MAX_ADC 100
  15. void hal_charge_init(void);
  16. uint8_t hal_charge_Getstate(void);
  17. #endif