You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.4 KiB

/********************************* Copyright ************************************
* (C) Copyright 2024,Zhang Kai,China,Genfo.
* All Rights Reserved
*
* By(Zhang Kai)
*
* 文件名称 : low_battery_life.h
* 版 本 : V1.0
* 日 期 : 2024-09-29
* 文件说明 : (空)
* 修改记录 : (空)
********************************************************************************/
#ifndef __LOW_BATTERY_LIFE_H_
#define __LOW_BATTERY_LIFE_H_
/**********************************参数及宏定义*********************************/
#define LBF_MAX_ALLOWABLE_SPEED 55 //低电量续航最大允许的速度,单位km/h
typedef enum
{
NoRequest = 0,
Off ,
On,
Reserved,
}LowBatLife_e;
typedef struct
{
unsigned char EnSet; //功能使能标志 0x0:No Request 0x1:OFF 0x2: ON 0x3:reserved
unsigned char Status; //低电量长续航模式状态 0x0:OFF 0x1: ON
unsigned char SocValue; //电池SOC 0--100
unsigned char KmhLimit; //限速千米/时
} LowBatLife_t;
/*******************************外部参数及函数声明******************************/
extern LowBatLife_t LowBatLife_M1;
void app_low_battery_life (LowBatLife_t *p);
#endif