/* ****************************************************************************** * * @file bat.h * @brief bat module * @ic sy8835 * * @version 1.0 * @date 2024/11/01 09:59:40 * @author Alex Xu * * Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd. * All Rights Reserved * * History: * Revision Date Author Desc * 1.0.0 2024/11/01 Alex build this file ****************************************************************************** */ #ifndef __BAT_H__ #define __BAT_H__ /*_____ I N C L U D E S ____________________________________________________*/ #include "define.h" /******************************************************************************\ Macro definitions \******************************************************************************/ /******************************************************************************\ Variables definitions \******************************************************************************/ extern idata uint8_t bat_level; extern idata uint8_t bat_level_Pec; extern bit F_batlevel_low; //电池低压 extern bit F_batlevel_protect; //低电保护 #if GAUGE_ENABLE extern uint8 SOC_report; //上报的SOC值,结合库仑计信息和SOC_int/SOC_dsg之间 extern void Bat_Cal_Init(void); extern void Bat_Gauge_Handle(void); #endif #if BAT_VALUE /******************************************************************************\ Functions definitions \******************************************************************************/ extern void check_bat_level(void); #endif #endif