hfp_headset_sco.h
来自「CSR蓝牙芯片 无线蓝牙耳机的语音网关程序 蓝牙耳机程序已经上传」· C头文件 代码 · 共 74 行
H
74 行
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004
FILE NAME
hfp_headset_sco.h
DESCRIPTION
*/
#ifndef _HFP_HEADSET_SCO_H_
#define _HFP_HEADSET_SCO_H_
/****************************************************************************
NAME
hfpGetBestScoPktType
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 hfpGetBestScoPktType(const headsetTaskData *app);
/****************************************************************************
NAME
hfpSetupScoRouting
DESCRIPTION
Set up the SCO routing to the PCM.
RETURNS
bool
*/
bool hfpSetupScoRouting(headsetTaskData *app);
/****************************************************************************
NAME
hfpHeadsetHandleScoConnectInd
DESCRIPTION
Indication of the AG opening a SCO to the headset.
RETURNS
void
*/
void hfpHeadsetHandleScoConnectInd(headsetTaskData *app, const HFP_SCO_CONNECT_IND_T *ind);
/****************************************************************************
NAME
hfpHeadsetHandleScoDisconnectInd
DESCRIPTION
Indication that the SCO connection has been released.
RETURNS
void
*/
void hfpHeadsetHandleScoDisconnectInd(headsetTaskData *app, const HFP_SCO_DISCONNECT_IND_T *ind);
#endif /* _HFP_HEADSET_SCO_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?