hfp_handler.h

来自「实现蓝牙立体声耳机功能。。可以接收并播放来自有蓝牙功能的手机」· C头文件 代码 · 共 108 行

H
108
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.6.2-release

FILE NAME
    hfp_handler.h
    
DESCRIPTION
    
*/

#ifndef _HFP_HANDLER_H_
#define _HFP_HANDLER_H_


/****************************************************************************
NAME    
    hfpHeadsetAnswerCall
    
DESCRIPTION
    Answer an incoming call from the headset
*/
void hfpHeadsetAnswerCall(const headsetTaskData *app);


/****************************************************************************
NAME    
    hfpHeadsetRejectCall
    
DESCRIPTION
    Reject an incoming/ outgoing call from the headset
*/
void hfpHeadsetRejectCall(const headsetTaskData *app);


/****************************************************************************
NAME    
    hfpHeadsetHangUpCall
    
DESCRIPTION
    Hang up the call from the headset.
*/
void hfpHeadsetHangUpCall(const headsetTaskData *app);


/****************************************************************************
NAME    
    hfpHeadsetLastNumberRedial
    
DESCRIPTION
    Request a last numebr redial from the AG.
*/
void hfpHeadsetLastNumberRedial(const headsetTaskData *app);


/****************************************************************************
NAME    
    hfpHeadsetHandleVoiceRecognitionInd
    
DESCRIPTION
    Handle indication of the change in the state of the AG's voice recognition.
*/
void hfpHeadsetHandleVoiceRecognitionInd(headsetTaskData *app, const HFP_VOICE_RECOGNITION_IND_T *ind);


/****************************************************************************
NAME    
    hfpHeadsetVoiceRecognitionEnable
    
DESCRIPTION
    Enable/ disable voice recognition at the AG.
*/
void hfpHeadsetVoiceRecognitionEnable(headsetTaskData *app, uint16 enable);


/****************************************************************************
NAME    
    hfpHeadsetHandleVoiceRecognitionCfm
    
DESCRIPTION
    Received a cfm in response to a request from the headset that the AG 
    enable /disable its voice recognition engine.
*/
void hfpHeadsetHandleVoiceRecognitionCfm(headsetTaskData *app, const HFP_VOICE_RECOGNITION_ENABLE_CFM_T *cfm);


/****************************************************************************
NAME    
    hfpHeadsetHandleCallIndicator
    
DESCRIPTION
    HFP call indicator update.
*/
void hfpHeadsetHandleCallIndicator(headsetTaskData *app, const HFP_CALL_IND_T *ind);


/****************************************************************************
NAME    
    hfpHeadsetHandleCallSetupIndicator
    
DESCRIPTION
    HFP call setup indicator update.
*/
void hfpHeadsetHandleCallSetupIndicator(headsetTaskData *app, const HFP_CALL_SETUP_IND_T *ind);


#endif /* _HFP_HANDLER_H_ */

⌨️ 快捷键说明

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