/*
 * @Description: 电量采集模块-svc层
 * @Author: yangsw
 * @Date: 2021-06-02 09:30:22
 * @LastEditTime: 2022-12-02 15:42:12
 * @LastEditors: Lida
 * @Reference: 
 */
#ifndef H_SVC_BAT_H
#define H_SVC_BAT_H

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

typedef struct{
    /*电池电压，单位：mV*/
    gw_u32 u32BatValtage;
    /*电压等级，>3.4:0x00; 3.2-3.4:0x01; 3.2-3.0:0x02; <3.0:0x03*/
    gw_u8 u8Power_Level;
}S_Bat;

#define Svc_Bat_Get_Adc()   Bsp_Bat_Get_Adc();
gw_u32 Svc_Bat_Check(void);
void Svc_Bat_Init(void);
#endif
