headset_battery.h
来自「BlueLab 3.5.2 单声道耳机源码」· C头文件 代码 · 共 57 行
H
57 行
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2005-2006
Part of BlueLab 3.6.2-release
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 + -
显示快捷键?