📄 hfp_headset_sco.h
字号:
/****************************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -