Decection.h 480 B

12345678910111213141516171819
  1. #ifndef _DETECTION_H_
  2. #define _DETECTION_H_
  3. #include "esp_adc/adc_oneshot.h"
  4. #include "esp_adc/adc_cali.h"
  5. #include "esp_adc/adc_cali_scheme.h"
  6. int adc_read_power_pin(adc_oneshot_unit_handle_t adc_handle);
  7. int read_battery_voltage();
  8. int decection_state_0(void);
  9. int decection_state_1(void);
  10. void decection_charging_init(void);
  11. void decection_charging_deinit(void);
  12. int adc_read_left_key_pin(adc_oneshot_unit_handle_t adc_handle);
  13. #endif/*_DETECTION_H_*/