a2dp_sd_avrcp.h

来自「dongle蓝牙适配器(a2dp_source_dongle)源代码」· C头文件 代码 · 共 121 行

H
121
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007
Part of Stereo-Headset-SDK Q1-2007.Release

FILE NAME
    a2dp_sd_avrcp.h
    
DESCRIPTION
    
*/

#ifndef A2DP_SD_AVRCP_H
#define A2DP_SD_AVRCP_H


/****************************************************************************
NAME
    a2dpSdRcpHandleConnectInd   
    
DESCRIPTION
    Handle a request to establish an incoming RCP connection. 

RETURNS
    void
*/
void a2dpSdRcpHandleConnectInd(AVRCP *avrcp, const bdaddr *addr, const AVRCP_CONNECT_IND_T *ind);


/****************************************************************************
NAME    
    a2dpSdRcpHandleConnectIndReject

DESCRIPTION
    Reject the RCP connection we're in the wrong state.

RETURNS
    void
*/
void a2dpSdRcpHandleConnectIndReject(AVRCP *avrcp, const AVRCP_CONNECT_IND_T *ind);


/****************************************************************************
NAME    
    a2dpSdRcpHandleConnectCfm

DESCRIPTION
    Handle a connect_cfm message indicating whether the RCP connection
    was successfully established.

RETURNS
    void
*/
void a2dpSdRcpHandleConnectCfm(a2dpSourceDongleTaskData *theApp, const AVRCP_CONNECT_CFM_T *cfm);


/****************************************************************************
NAME    
    a2dpSdRcpHandleDisconnect

DESCRIPTION
    The RCP connection has been disconnected by either the local or the 
    remote end.

RETURNS
    void
*/
void a2dpSdRcpHandleDisconnect(a2dpSourceDongleTaskData *theApp);


/****************************************************************************
NAME    
    a2dpSdRcpHandlePassthroughInd

DESCRIPTION
    Sent by the library when the remote control has issued a passthrough 
    command. Send back the response and action the comand.

RETURNS
    void
*/
void a2dpSdRcpHandlePassthroughInd(AVRCP *avrcp, const AVRCP_PASSTHROUGH_IND_T *ind);


/****************************************************************************
NAME    
    a2dpSdRcpHandleUnitInfoInd

DESCRIPTION
    The remote device has issued the UnitInfo command.

RETURNS
    void
*/
void a2dpSdRcpHandleUnitInfoInd(AVRCP *avrcp, const AVRCP_UNITINFO_IND_T *ind);


/****************************************************************************
NAME    
    a2dpSdRcpHandleSubUnitInfoInd

DESCRIPTION
    The remote device has issued the SubunitInfo command.

RETURNS
    void
*/
void a2dpSdRcpHandleSubUnitInfoInd(AVRCP *avrcp, const AVRCP_SUBUNITINFO_IND_T *ind);

/****************************************************************************
NAME    
    a2dpSdRcpHandleVendorDependentInd

DESCRIPTION
    The remote device has issued a VendorDependent command.

RETURNS
    void
*/
void a2dpSdRcpHandleVendorDependentInd(AVRCP *avrcp, const AVRCP_VENDORDEPENDENT_IND_T *ind);
#endif /* A2DP_SD_AVRCP_H */

⌨️ 快捷键说明

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