📄 hfp_audio.h
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.6.2-release
FILE NAME
hfp_audio.h
DESCRIPTION
*/
#ifndef _HFP_AUDIO_H_
#define _HFP_AUDIO_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
*/
sync_pkt_type hfpGetBestScoPktType(const headsetTaskData *app);
/****************************************************************************
NAME
hfpSetupScoRouting
DESCRIPTION
Set up the SCO routing to the PCM.
RETURNS
bool
*/
bool hfpSetupScoRouting(headsetTaskData *app);
/****************************************************************************
NAME
hfpHeadsetHandleAudioConnectCfm
DESCRIPTION
Indication of the AG opening a SCO to the headset.
*/
void hfpHeadsetHandleAudioConnectCfm(headsetTaskData *app, const HFP_AUDIO_CONNECT_CFM_T *cfm);
/****************************************************************************
NAME
hfpHeadsetHandleAudioDisconnectInd
DESCRIPTION
Indication that the audio connection has been released.
*/
void hfpHeadsetHandleAudioDisconnectInd(headsetTaskData *app);
/****************************************************************************
NAME
hfpHeadsetTransferAudio
DESCRIPTION
If the audio is at the headset end transfer it back to the AG and
vice versa.
*/
void hfpHeadsetTransferAudio(headsetTaskData *app, hfp_audio_transfer_direction dir);
/****************************************************************************
NAME
hfpHeadsetHandleAudioConnectInd
DESCRIPTION
Accept or reject an incoming audio connection.
*/
void hfpHeadsetHandleAudioConnectInd(headsetTaskData *app, const HFP_AUDIO_CONNECT_IND_T *ind);
/****************************************************************************
NAME
hfpMicrophoneMuteToggle
DESCRIPTION
Turn the microphone on or off depending on the current state
*/
void hfpMicrophoneMuteToggle(headsetTaskData *app);
#endif /* _HFP_AUDIO_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -