headset_battery.h
来自「bluelab的一个很好的例程」· C头文件 代码 · 共 56 行
H
56 行
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2005
FILE NAME
headset_battery.h
DESCRIPTION
*/
#ifndef _HEADSET_BATTERY_H_
#define _HEADSET_BATTERY_H_
/****************************************************************************
NAME
batteryInit
DESCRIPTION
This function will initialise the battery sub-system. The sub-system
manages the reading and calulation of the battery voltage and temperature
RETURNS
void
*/
void batteryInit(power_type* power);
/****************************************************************************
NAME
batteryGetCurrentVoltage
DESCRIPTION
Call this function to get the current battery voltage
RETURNS
void
*/
uint16 batteryGetCurrentVoltage(power_type* power);
/****************************************************************************
NAME
batteryGetCurrentTemperature
DESCRIPTION
Call this function to get the current battery temperature
RETURNS
void
*/
int16 batteryGetCurrentTemperature(power_type* power);
#endif /* _HEADSET_BATTERY_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?