Files
2026-03-31 15:40:09 +08:00

40 lines
786 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.
/*
* @Date: 2025-06-26 09:38:45
* @LastEditors: 路怀帅
* @LastEditTime: 2025-07-05 11:31:57
* @FilePath: \RVMDKuv5e:\个人项目\零距电子\安灯遥控器\Andon_Remote_Control\Andon_RTOS\User\inc\bsp_bat.h
*/
#ifndef __BAT_H
#define __BAT_H
#include "main.h"
typedef struct
{
void (*Init)(void);
uint8_t (*Read_State)(void);
} BATClassStruct;
typedef enum
{
BAT_Charging = 0, // 电池充电中
BAT_Full, // 电池充满
BAT_Low, // 电池低电量
BAT_Hight // 电池高电量
} BAT_State_Enum;
extern BATClassStruct BATClass;
void Power_button_init(void);
uint8_t Check_Power_buttun(void);
typedef struct {
void (* Init)(void);
uint16_t (* GetValue)(uint8_t ADC_channelx);
} ADC1ClassStruct;
extern ADC1ClassStruct ADC1Class;
#endif