/*
 * @Description: 电量采集模块-svc层
 * @Author: yangsw
 * @Date: 2021-06-02 09:30:22
 * @LastEditTime: 2024-01-10 14:41:22
 * @LastEditors: LiDa
 * @Reference: 
 */
#ifndef H_SVC_BAT_H
#define H_SVC_BAT_H

#include "../bsp/bsp_bat.h"

typedef struct{   
    /*电池电压，单位：mV*/
    gw_u16 u16BatValtage;
    /*电量检测时间计数*/
    gw_u8  u8TimeCnt;
    /*刷新计数*/
    gw_u8  u8Cnt;
}S_Bat;

#define BAT_FLASH_LOW   300

void Svc_Bat_Init(void);
void Svc_Bat_Wakeup_Init(void);
S_Bat Svc_Bat_Get_Data(void);

void Svc_Bat_Timer_Callback(void);
void Svc_Bat_Check(void);
void Svc_Bat_Real_Time(void);

#endif

