⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 headset_power.h

📁 针对bluelab3.42的handsfree车载蓝牙的参考
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.4.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 + -