hal_charge.h 476 B

12345678910111213141516171819202122232425262728
  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 820
  11. #define DISCON_L_MIN_ADC 650
  12. #define CON_L_MAX_ADC 550
  13. #define CON_L_MIN_ADC 450
  14. #define CONN_MAX_ADC 1000
  15. #define CONN_MIN_ADC 820
  16. #define DISCON_R_MAX_ADC 100
  17. void hal_charge_init(void);
  18. uint8_t hal_charge_Getstate(void);
  19. #endif