?? headset_power.h
字號:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.5.2-release
FILE NAME
headset_power.h
DESCRIPTION
*/
#ifndef _HEADSET_POWER_H_
#define _HEADSET_POWER_H_
/*************************************************************************
NAME
headsetSetPowerState
DESCRIPTION
Sets the current power state.
*/
void headsetSetPowerState(headsetTaskData *app, power_state state);
/*************************************************************************
NAME
headsetPowerOn
DESCRIPTION
Called when the headset has powered on through a MFB button press.
*/
void headsetPowerOn(headsetTaskData *app);
/*************************************************************************
NAME
headsetPowerOnInit
DESCRIPTION
Called immediately on headset power on. This function needs to hold
the right pins high to make sure the headset stays powered on.
*/
void headsetPowerOnInit(headsetTaskData *app);
/*************************************************************************
NAME
headsetStartPowerDown
DESCRIPTION
Start to power down the headset gracefully
*/
void headsetStartPowerDown(headsetTaskData* app);
/*************************************************************************
NAME
headsetCheckPowerDownStatus
DESCRIPTION
Checks if connections have been successfully dropped and we have
initiated power down. We can then power off.
*/
void headsetCheckPowerDownStatus(const headsetTaskData *app);
/*************************************************************************
NAME
headsetPowerDown
DESCRIPTION
Power down the headset
*/
void headsetPowerDown(const headsetTaskData *app);
/*************************************************************************
NAME
headsetPowerDownLEDs
DESCRIPTION
Power down the headset
*/
void headsetPowerDownLEDs(headsetTaskData *app);
/*************************************************************************
NAME
headsetPowerCheckAutoOff
DESCRIPTION
Check if the auto power off timer can be started
*/
void headsetPowerCheckAutoOff(const headsetTaskData *app);
/*************************************************************************
NAME
headsetIsAmpPowered
DESCRIPTION
Check if the audio amp is enabled
*/
bool headsetIsAmpPowered(const headsetTaskData *app);
/*************************************************************************
NAME
headsetPowerAmp
DESCRIPTION
Set the audio amp to be enabled or disabled
*/
void headsetPowerAmp(headsetTaskData *app, bool power);
/**************************************************************************
NAME
headsetPowerAmpOnOnly
DESCRIPTION
Set the audio amp on but don't update flag
*/
void headsetPowerAmpOnOnly(headsetTaskData *app);
/**************************************************************************
NAME
headsetPowerUpdateAmpOnFlag
DESCRIPTION
Audio amp is on so update flag
*/
void headsetPowerUpdateAmpOnFlag(headsetTaskData *app);
#endif /* _HEADSET_POWER_H_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -