User_Battery.h 376 B

123456789101112131415
  1. #ifndef _H_USER_BATTERY_H_
  2. #define _H_USER_BATTERY_H_
  3. #include "main.h"
  4. #define BatteryVoltageNumber 2 //单次采集电压次数
  5. #define filter_mid_averange_number 11
  6. void StartBattery_Filter(void);
  7. uint8_t GetBatteryCurrentPersent(void);
  8. void User_SAADC_DisOrEnable(bool value);
  9. void Quick_GetBatteryPersent(void);
  10. uint16_t GetBatteryVoltage_adc(void);
  11. #endif