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

📄 a2dp_handler.h

📁 针对bluelab3.42的handsfree车载蓝牙的参考
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.4.2-release

FILE NAME
    a2dp_handler.h
    
DESCRIPTION
    
*/

#ifndef _A2DP_HANDLER_H_
#define _A2DP_HANDLER_H_


/*
    Selects the optimal configuration for SBC playback
    by setting a single bit in each field of the passed
    caps structure.

    Note that the priority of selecting features is a
    design decision and not specified by the AV profiles.
*/
bool selectOptimalCapsSBC(uint8 *caps);


/*************************************************************************
NAME    
     avHeadsetRegisterSep
    
DESCRIPTION
     This function is called to register the required Stream Endpoints
     into the GAVDP SEP database
*/
void avHeadsetRegisterSep(const headsetTaskData *app, a2dp_sep_type sep);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpAddSepCfm
    
DESCRIPTION
     This function is called to when confirmation that the stream endpoints have been 
     registered
*/
void avHeadsetHandleA2dpAddSepCfm(headsetTaskData* app, const A2DP_ADD_SEP_CFM_T* cfm);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpOpenInd
    
DESCRIPTION
     This function is called on receipt of an A2DP_OPEN_IND message indicating
     that the SEP has opened
*/
void avHeadsetHandleA2dpOpenInd(headsetTaskData* app, const A2DP_OPEN_IND_T* ind);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpOpenCfm
    
DESCRIPTION
     This function is called on receipt of an A2DP_OPEN_CFM message indicating
     that the SEP has opened
*/
void avHeadsetHandleA2dpOpenCfm(headsetTaskData* app, const A2DP_OPEN_CFM_T* cfm);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpStartInd
    
DESCRIPTION
     This function is called on receipt of an A2DP_START_IND message 
     indicating that we are about to start streaming
*/
void avHeadsetHandleA2dpStartInd(headsetTaskData* app, const A2DP_START_IND_T* ind);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpStartCfm
    
DESCRIPTION
     This function is called on receipt of an A2DP_START_CFM message indicating
     the result of our request to start streaming
*/
void avHeadsetHandleA2dpStartCfm(headsetTaskData* app, const A2DP_START_CFM_T* cfm);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpSuspendInd
    
DESCRIPTION
     This function is called on receipt of an A2DP_SUSPEND_IND message 
*/
void avHeadsetHandleA2dpSuspendInd(headsetTaskData *app);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpSuspendCfm
    
DESCRIPTION
     This function is called on receipt of an A2DP_SUSPEND_CFM message 
*/
void avHeadsetHandleA2dpSuspendCfm(headsetTaskData* app, const A2DP_SUSPEND_CFM_T* ind);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpCloseInd
    
DESCRIPTION
     This function is called on receipt of an A2DP_CLOSE_IND message 
*/
void avHeadsetHandleA2dpCloseInd(headsetTaskData *app, const A2DP_CLOSE_IND_T *ind);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpCloseCfm
    
DESCRIPTION
     This function is called on receipt of an A2DP_CLOSE_CFM message 
*/
void avHeadsetHandleA2dpCloseCfm(headsetTaskData *app);


/*************************************************************************
NAME    
     avHeadsetHandleA2dpCodecSettingsInd
    
DESCRIPTION
     Handle the receipt of new codec settings.
*/
void avHeadsetHandleA2dpCodecSettingsInd(headsetTaskData *theAvApp, const A2DP_CODEC_SETTINGS_IND_T *ind);


/*************************************************************************
NAME    
     avHeadsetHandleAvConnectRequest
    
DESCRIPTION
     Connect to the last AV source the headset was connected to.
*/
void avHeadsetHandleAvConnectRequest(headsetTaskData *theAvApp);


#endif /* _A2DP_HANDLER_H_ */

⌨️ 快捷键说明

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