ZNY_Pakistan/Anjiehui7_ZNY/User/adc_bat.h

28 lines
669 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*----------------------------------------------------------------*
* *
* 电池电压读取模块 *
* *
* 作者:钱向红 *
* *
* 时间2017-02-10 *
* *
*----------------------------------------------------------------*/
#ifndef USER_ADC_BAT_PRESENT
#define USER_ADC_BAT_PRESENT
#include "type.h"
// 初始化引脚
void Battery_Init(void);
void Battery_Open();
// 读电池数据并解析
uint32_t DS2788_ReadBattery(data_dtu_t *sample);
// 充放电改变标志
extern uint8_t bat_CurrentEvent;
extern uint32_t Poweroff_time;
#endif