⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 headset_hfp_handler.h

📁 bc5_stereo:bluetooth stereo Headset CODE 支持A2DP HSP 和 HSP 。可作为车载免提。BlueLab 2007环境下编译
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007
Part of Stereo-Headset-SDK Q1-2007.Release

FILE NAME
    headset_hfp_handler.h
    
DESCRIPTION
    Functions which handle the HFP library messages.
    
*/
#ifndef HEADSET_HFP_HANDLER_H
#define HEADSET_HFP_HANDLER_H


#include "headset_private.h"


/****************************************************************************
  FUNCTIONS
*/

/*************************************************************************
NAME    
    hfpHandlerInitCfm
    
DESCRIPTION
    Handles the HFP_INIT_CFM message from the HFP library.
    
*/
void hfpHandlerInitCfm( hsTaskData * pApp , const HFP_INIT_CFM_T *cfm );
        

/*************************************************************************
NAME    
    hfpHandlerConnectInd
    
DESCRIPTION
    Handles the HFP_SLC_CONNECT_IND message from the HFP library.
    
*/
void hfpHandlerConnectInd( hsTaskData * pApp , const HFP_SLC_CONNECT_IND_T *cfm );


/*************************************************************************
NAME    
    hfpHandlerConnectCfm
    
DESCRIPTION
    Handles the HFP_SLC_CONNECT_CFM message from the HFP library.
    
*/
void hfpHandlerConnectCfm( hsTaskData * pApp , const HFP_SLC_CONNECT_CFM_T *cfm );
 

/*************************************************************************
NAME    
    hfpHandlerDisconnectInd
    
DESCRIPTION
    Handles the HFP_SLC_DISCONNECT_IND message from the HFP library.
    
*/
void hfpHandlerDisconnectInd(hsTaskData * pApp, const HFP_SLC_DISCONNECT_IND_T *ind);


/*************************************************************************
NAME    
    hfpHandlerInbandRingInd
    
DESCRIPTION
    Handles the HFP_IN_BAND_RING_IND message from the HFP library.
    
*/
void hfpHandlerInbandRingInd( hsTaskData * pApp, const HFP_IN_BAND_RING_IND_T * ind );


/*************************************************************************
NAME    
    hfpHandlerCallInd
    
DESCRIPTION
    Handles the HFP_CALL_IND message from the HFP library.
    
*/
void hfpHandlerCallInd ( hsTaskData *pApp,  const HFP_CALL_IND_T * pInd );


/*************************************************************************
NAME    
    hfpHandlerCallSetupInd
    
DESCRIPTION
    Handles the HFP_CALL_SETUP_IND message from the HFP library.
    
*/
void hfpHandlerCallSetupInd ( hsTaskData *pApp,  const HFP_CALL_SETUP_IND_T * pInd );


/*************************************************************************
NAME    
    hfpHandlerRingInd
    
DESCRIPTION
    Handles the HFP_RING_IND message from the HFP library.
    
*/
void hfpHandlerRingInd ( hsTaskData *pApp );
        

/*************************************************************************
NAME    
    hfpHandlerVoiceRecognitionInd
    
DESCRIPTION
    Handles the HFP_VOICE_RECOGNITION_IND message from the HFP library.
    
*/
void hfpHandlerVoiceRecognitionInd( hsTaskData *pApp, const HFP_VOICE_RECOGNITION_IND_T *ind );


/*************************************************************************
NAME    
    hfpHandlerVoiceRecognitionCfm
    
DESCRIPTION
    Handles the HFP_VOICE_RECOGNITION_ENABLE_CFM message from the HFP library.
    
*/
void hfpHandlerVoiceRecognitionCfm( hsTaskData *pApp, const HFP_VOICE_RECOGNITION_ENABLE_CFM_T *cfm );


/*************************************************************************
NAME    
    hfpHandlerLastNoRedialCfm
    
DESCRIPTION
    Handles the HFP_LAST_NUMBER_REDIAL_CFM message from the HFP library.
    
*/
void hfpHandlerLastNoRedialCfm( hsTaskData *pApp, const HFP_LAST_NUMBER_REDIAL_CFM_T *cfm );


/*************************************************************************
NAME    
    hfpHandlerEncryptionChangeInd
    
DESCRIPTION
    Handles the HFP_ENCRYPTION_CHANGE_IND message from the HFP library.
    
*/
void hfpHandlerEncryptionChangeInd( hsTaskData *pApp, const HFP_ENCRYPTION_CHANGE_IND_T *ind );


/*************************************************************************
NAME    
    hfpHandlerSpeakerVolumeInd
    
DESCRIPTION
    Handles the HFP_SPEAKER_VOLUME_IND message from the HFP library.
    
*/
void hfpHandlerSpeakerVolumeInd( hsTaskData *pApp, const HFP_SPEAKER_VOLUME_IND_T *ind );


/*************************************************************************
NAME    
    hfpHandlerAudioConnectInd
    
DESCRIPTION
    Handles the HFP_AUDIO_CONNECT_IND message from the HFP library.
    
*/
void hfpHandlerAudioConnectInd( hsTaskData *pApp, const HFP_AUDIO_CONNECT_IND_T *ind );


/*************************************************************************
NAME    
    hfpHandlerAudioConnectCfm
    
DESCRIPTION
    Handles the HFP_AUDIO_CONNECT_CFM message from the HFP library.
    
*/
void hfpHandlerAudioConnectCfm( hsTaskData *pApp, const HFP_AUDIO_CONNECT_CFM_T *cfm );


/*************************************************************************
NAME    
    hfpHandlerAudioDisconnectInd
    
DESCRIPTION
    Handles the HFP_AUDIO_DISCONNECT_IND message from the HFP library.
    
*/
void hfpHandlerAudioDisconnectInd( hsTaskData *pApp, const HFP_AUDIO_DISCONNECT_IND_T *ind );


#endif

⌨️ 快捷键说明

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