📄 headset_callmanager.h
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2005-2006
Part of BlueLab 3.6.2-release
FILE NAME
headset_callmanager.h
DESCRIPTION
This is the call manager for BC4-Headset
NOTES
*/
#ifndef _HS_CALL_MANAGER_H_
#define _HS_CALL_MANAGER_H_
#include <hfp.h>
#include "headset_private.h"
void headsetHandleCallSetupInd ( hsTaskData *pApp, const HFP_CALL_SETUP_IND_T * pInd ) ;
void headsetHandleCallInd ( hsTaskData *pApp, const HFP_CALL_IND_T * pInd ) ;
void headsetHandleRingInd(hsTaskData *pApp, const HFP_RING_IND_T * pInd) ;
/****************************************************************************
NAME
headsetAnswerCall
DESCRIPTION
Answer an incoming call from the headset
RETURNS
void
*/
void headsetAnswerCall(const hsTaskData * pApp);
/****************************************************************************
NAME
headsetHandleAnswerCallCfm
DESCRIPTION
Cfm from the HFP lib telling us whether the answer call response was
accepted by the AG or not.
RETURNS
void
*/
void headsetHandleAnswerCallCfm(hsTaskData *pApp, HFP_ANSWER_CALL_CFM_T * pInd);
/****************************************************************************
NAME
headsetRejectCall
DESCRIPTION
Reject an incoming/ outgoing call from the headset
RETURNS
void
*/
void headsetRejectCall(const hsTaskData *pApp);
/****************************************************************************
NAME
headsetHandleRejectCallCfm
DESCRIPTION
Cfm from the HFP lib telling us whether the reject call response was
accepted by the AG or not.
RETURNS
void
*/
void headsetHandleRejectCallCfm(hsTaskData *pApp, const HFP_REJECT_CALL_CFM_T *pCfm);
/****************************************************************************
NAME
hfpHeadsetHangUpCall
DESCRIPTION
Hang up the call from the headset.
RETURNS
void
*/
void headsetHangUpCall(const hsTaskData *pApp);
/****************************************************************************
NAME
headsetHandleTerminateCallCfm
DESCRIPTION
Cfm from the HFP lib telling us whether the hang up call response was
accepted by the AG or not.
RETURNS
void
*/
void headsetHandleTerminateCallCfm(hsTaskData *pApp, const HFP_TERMINATE_CALL_CFM_T *pCfm);
/****************************************************************************
NAME
headsetTransferToggle
DESCRIPTION
If the audio is at the headset end transfer it back to the AG and
vice versa.
RETURNS
void
*/
void headsetTransferToggle(hsTaskData *pApp) ;
/****************************************************************************
NAME
headsetInitiateLNR
DESCRIPTION
If HFP and connected - issues command
If HFP and not connected - connects and issues if not in call
If HSP sends buton press
RETURNS
void
*/
void headsetInitiateLNR ( hsTaskData * pApp ) ;
/****************************************************************************
NAME
headsetInitiateVoiceDial
DESCRIPTION
If HFP and connected - issues command
If HFP and not connected - connects and issues if not in call
If HSP sends buton press
RETURNS
void
*/
void headsetInitiateVoiceDial ( hsTaskData* pApp ) ;
/****************************************************************************
NAME
headsetInitiateLNR
DESCRIPTION
cancels a voice dial request
RETURNS
void
*/
void headsetCancelVoiceDial ( hsTaskData * pApp) ;
/****************************************************************************
NAME
headsetRecallQueuedEvent
DESCRIPTION
Checks to see if an event was Queued and issues it - used on connection
RETURNS
void
*/
void headsetRecallQueuedEvent ( hsTaskData * pApp ) ;
/****************************************************************************
NAME
headsetClearQueueudEvent
DESCRIPTION
Clears the QUEUE - used on failure to connect / power on / off etc
RETURNS
void
*/
void headsetClearQueueudEvent ( hsTaskData * pApp ) ;
/****************************************************************************
NAME
headsethandleResponseHoldInd
DESCRIPTION
Handles a response and hold indication
RETURNS
void
*/
void headsethandleResponseHoldInd ( hsTaskData * pApp , HFP_RESPONSE_HOLD_STATUS_IND_T * pInd ) ;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -