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

📄 headset_slc.h

📁 BlueLab 3.5.2 单声道耳机源码
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.6.2-release

FILE NAME
    headset_slc.h
    
DESCRIPTION
    
*/

#ifndef _HEADSET_SLC_H_
#define _HEADSET_SLC_H_

/*the action to take on the auto reconnect*/
typedef enum AutoReconnectActionTag
{
    AR_LastConnected    = 0 ,
    AR_Last             = 1 ,    
    AR_Default          = 2 ,
    AR_LastThenDefault  = 3 ,
    AR_DefaultThenLast  = 4 ,
    AR_Swap             = 5 ,
    AR_SwapSwap         = 6
}ARAction_t ;

/****************************************************************************
NAME    
    headsetHandleSlcConnectInd
    
DESCRIPTION
    Handle a request to establish an SLC from the AG.

RETURNS
    void
*/
void headsetHandleSlcConnectInd(hsTaskData *app, const HFP_SLC_CONNECT_IND_T *ind);


/****************************************************************************
NAME    
    headsetHandleSlcConnectCfm
    
DESCRIPTION
    Confirmation that the SLC has been established (or not).

RETURNS
    void
*/
bool headsetHandleSlcConnectCfm(hsTaskData *app, const HFP_SLC_CONNECT_CFM_T *cfm);


/****************************************************************************
NAME    
    slcConnectAfterLinkLoss
    
DESCRIPTION
    Request to create a connection to a remote AG after a link loss has occured.

RETURNS
    void
*/
void slcConnectAfterLinkLoss ( hsTaskData *pApp ) ;

/****************************************************************************
NAME    
    slcEstablishSLCRequest
    
DESCRIPTION
    Request to create a connection to a remote AG.

RETURNS
    void
*/
void slcEstablishSLCRequest ( hsTaskData *pApp, hfp_profile pProfile ) ;

/****************************************************************************
NAME    
    headsetDisconnectSlc
    
DESCRIPTION
    Disconnect the SLC associated with this profile instance.

RETURNS
    void
*/
void headsetDisconnectSlc(hsTaskData *app);


/****************************************************************************
NAME    
    headsetHandleSlcDisconnectInd
    
DESCRIPTION
    Indication that the SLC has been released.

RETURNS
    void
*/
void headsetHandleSlcDisconnectInd(hsTaskData *app, const HFP_SLC_DISCONNECT_IND_T *ind);


/****************************************************************************
NAME    
    headsetHandleRemoteSuppFeatures
    
DESCRIPTION
    Supported features of the remote device contained in the message if the 
    read succeeded. 

RETURNS
    void
*/
void headsetHandleRemoteSuppFeatures(hsTaskData *app, const CL_DM_REMOTE_FEATURES_CFM_T *cfm) ;


/****************************************************************************
NAME    
    headsetHandleServiceIndicator
    
DESCRIPTION
    Interprets the service Indicator messages and sends the appropriate Headset message 

RETURNS
    void
*/
void headsetHandleServiceIndicator ( hsTaskData * pApp , const HFP_SERVICE_IND_T *pInd ) ;


/*records ifr a call transfer is occuring - last reconnect action may change because of this */
void slcCallTransferInProgress( hsTaskData * pApp) ;
void slcCallTransferNotInProgress( hsTaskData * pApp ) ;


/*stores the bdaddr as the last *connected/default user */
void slcStoreBdaddr ( hsTaskData * pApp , const bdaddr * pAddr) ;

/* Reset slc management */
void slcReset(void);


#endif /* _HEADSET_SLC_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -