hfp_headset_call_control.h

来自「CSR蓝牙芯片 无线蓝牙耳机的语音网关程序 蓝牙耳机程序已经上传」· C头文件 代码 · 共 111 行

H
111 行
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004

FILE NAME
    hfp_headset_call_control.h
    
DESCRIPTION
    
*/

#ifndef _HFP_HEADSET_CALL_CONTROL_H_
#define _HFP_HEADSET_CALL_CONTROL_H_


/****************************************************************************
NAME    
    hfpHeadsetAnswerCall
    
DESCRIPTION
    Answer an incoming call from the headset

RETURNS
    void
*/
void hfpHeadsetAnswerCall(const headsetTaskData *app);


/****************************************************************************
NAME    
    hfpHeadsetHandleAnswerCallCfm
    
DESCRIPTION
    Cfm from the HFP lib telling us whether the answer call response was
    accepted by the AG or not.

RETURNS
    void
*/
void hfpHeadsetHandleAnswerCallCfm(headsetTaskData *app, const HFP_ANSWER_CALL_CFM_T *cfm);


/****************************************************************************
NAME    
    hfpHeadsetRejectCall
    
DESCRIPTION
    Reject an incoming/ outgoing call from the headset

RETURNS
    void
*/
void hfpHeadsetRejectCall(const headsetTaskData *app);


/****************************************************************************
NAME    
    hfpHeadsetHandleRejectCallCfm
    
DESCRIPTION
    Cfm from the HFP lib telling us whether the reject call response was
    accepted by the AG or not.

RETURNS
    void
*/
void hfpHeadsetHandleRejectCallCfm(headsetTaskData *app, const HFP_REJECT_CALL_CFM_T *cfm);


/****************************************************************************
NAME    
    hfpHeadsetHangUpCall
    
DESCRIPTION
    Hang up the call from the headset.

RETURNS
    void
*/
void hfpHeadsetHangUpCall(const headsetTaskData *app);


/****************************************************************************
NAME    
    hfpHeadsetHandleTerminateCallCfm
    
DESCRIPTION
    Cfm from the HFP lib telling us whether the hang up call response was 
    accepted  by the AG or not.

RETURNS
    void
*/
void hfpHeadsetHandleTerminateCallCfm(headsetTaskData *app, const HFP_TERMINATE_CALL_CFM_T *cfm);


/****************************************************************************
NAME    
    hfpHeadsetTransferAudio
    
DESCRIPTION
    If the audio is at the headset end transfer it back to the AG and
    vice versa.

RETURNS
    void
*/
void hfpHeadsetTransferAudio(const headsetTaskData *app, hfp_audio_transfer_direction dir);


#endif /* _HFP_HEADSET_CALL_CONTROL_H_ */

⌨️ 快捷键说明

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