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

📄 headset_hfp_slc.h

📁 bc5_stereo:bluetooth stereo Headset CODE 支持A2DP HSP 和 HSP 。可作为车载免提。BlueLab 2007环境下编译
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007
Part of Stereo-Headset-SDK Q1-2007.Release

FILE NAME
    headset_hfp_slc.h
    
DESCRIPTION
    Handles HFP SLC
    
*/
#ifndef HEADSET_HFP_SLC_H
#define HEADSET_HFP_SLC_H


#include "headset_private.h"


/****************************************************************************
  FUNCTIONS
*/

/****************************************************************************
NAME    
    hfpSlcReset
    
DESCRIPTION
    Reset the SLC connecting states

*/
void hfpSlcReset( hsTaskData * pApp );


/****************************************************************************
NAME    
    hfpSlcIsConnecting
    
DESCRIPTION
    Method to tell if the headset is currently connecting or not.

RETURNS
    bool
*/
bool hfpSlcIsConnecting ( hsTaskData * pApp );


/****************************************************************************
NAME    
    hfpSlcConnectSuccess
    
DESCRIPTION
    Indicate that the HFP/HSP profile has been connected. 
    
*/
void hfpSlcConnectSuccess (hsTaskData * pApp , HFP * pProfile, Sink sink);


/****************************************************************************
NAME    
    hfpSlcConnectFail
    
DESCRIPTION
    SLC failed to connect.

*/
void hfpSlcConnectFail( hsTaskData *pApp );
        

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

*/
void hfpSlcConnectRequest( hsTaskData *pApp, hfp_profile pProfile );


/****************************************************************************
NAME    
    hfpSlcAttemptConnect
    
DESCRIPTION
    Attempt connection to a remote AG.

*/
void hfpSlcAttemptConnect( hsTaskData *pApp, hfp_profile pProfile , bdaddr * pAddr );


/****************************************************************************
NAME    
    hfpSlcConnectAfterLinkLoss
    
DESCRIPTION
    Attempt connection after link loss.

*/
void hfpSlcConnectAfterLinkLoss( hsTaskData *pApp );


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

*/
void hfpSlcDisconnect( hsTaskData *pApp );


/****************************************************************************
NAME    
    hfpSlcStoreBdaddr
    
DESCRIPTION
    Store the bluetooth address of an AG device that we know about.

*/
void hfpSlcStoreBdaddr ( const bdaddr * pAddr );


/****************************************************************************
NAME    
    hfpSlcGetLastUsedAG
    
DESCRIPTION
    Retrieve the bdaddr of the last used AG (paired or connected). 
	
RETURNS
	If the return value is TRUE then the function will have returned a valid bdaddr. 
	If the return value is FALSE then there is no last used AG.
*/
bool hfpSlcGetLastUsedAG(bdaddr *addr);
		

/****************************************************************************
NAME    
    hfpSlcGetLastConnectedAG
    
DESCRIPTION
    Retrieve the bdaddr of the last connected AG. 
	
RETURNS
	If the return value is TRUE then the function will have returned a valid bdaddr. 
	If the return value is FALSE then there is no last connected AG.
*/
bool hfpSlcGetLastConnectedAG(bdaddr *addr);


#endif

⌨️ 快捷键说明

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