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

📄 headset_sco.h

📁 蓝牙耳机的源代码,结合csr的开发套件使用
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.5.2-release

FILE NAME
    headset_sco.h
    
DESCRIPTION
    
*/

#ifndef _HEADSET_SCO_H_
#define _HEADSET_SCO_H_


/****************************************************************************
NAME    
    headsetGetBestScoPktType
    
DESCRIPTION
    This function looks at the supported features of the remote device and
    returns the most appropriate packet type depending on what packets the other
    end can support. If the remote end supports HV3 then this is the type 
    returned. Failing that it checks if HV2 is supported and if so returns that.
    Otherwise it returns the default packet type that all devices must support
    HV1.

RETURNS
    sco_pkt_type
*/
sco_pkt_type scoGetBestScoPktType(const hsTaskData *app);


/****************************************************************************
NAME    
    headsetHandleScoConnectInd
    
DESCRIPTION
    Indication of the AG opening a SCO to the headset.

RETURNS
    void
*/
void scoHandleScoConnectInd(hsTaskData *app, const HFP_SCO_CONNECT_IND_T *ind);


/****************************************************************************
NAME    
    headsetHandleScoDisconnectInd
    
DESCRIPTION
    Indication that the SCO connection has been released.

RETURNS
    void
*/
void scoHandleScoDisconnectInd(hsTaskData *app, const HFP_SCO_DISCONNECT_IND_T *ind);



/****************************************************************************
NAME    
    scoConnectScoToPcm
    
DESCRIPTION
    Method to connect an application's sco to a pcmport

RETURNS
    void
*/
void scoConnectScoToPcm ( hsTaskData *pApp, uint16 pPcmPort ) ;


#endif /* _HEADSET_SCO_H_ */

⌨️ 快捷键说明

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