📄 headset_avrcp_event_handler.h
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007
Part of Stereo-Headset-SDK Q1-2007.Release
FILE NAME
headset_avrcp_event_handler.h
DESCRIPTION
Handles avrcp events.
*/
#ifndef HEADSET_AVRCP_EVENT_HANDLER_H
#define HEADSET_AVRCP_EVENT_HANDLER_H
#include "headset_private.h"
/*************************************************************************
NAME
avrcpEventHandleControls
DESCRIPTION
Handles the Avrcp control messages and sends the AVRCP command to the remote end.
*/
void avrcpEventHandleControls(hsTaskData *app, APP_AVRCP_CONTROLS_T *msg);
/*************************************************************************
NAME
avrcpEventPlay
DESCRIPTION
Handles the Avrcp Play event.
*/
void avrcpEventPlay(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventPause
DESCRIPTION
Handles the Avrcp Pause event.
*/
void avrcpEventPause(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventStop
DESCRIPTION
Handles the Avrcp Stop event.
*/
void avrcpEventStop(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventSkipForward
DESCRIPTUION
Sends an AVRCP Skip Forward.
*/
void avrcpEventSkipForward(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventSkipBackward
DESCRIPTUION
Sends an AVRCP Skip Backward.
*/
void avrcpEventSkipBackward(hsTaskData* app);
/*************************************************************************
NAME
avrcpSendStop
DESCRIPTUION
Sends an AVRCP Stop.
*/
void avrcpSendStop(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventFastForwardPress
DESCRIPTION
Signal that Fast Forward has been pressed
*/
void avrcpEventFastForwardPress(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventFastForwardRelease
DESCRIPTION
Signal that Fast Forward has been released
*/
void avrcpEventFastForwardRelease(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventFastRewindPress
DESCRIPTION
Signal that Fast Rewind has been pressed
*/
void avrcpEventFastRewindPress(hsTaskData* app);
/*************************************************************************
NAME
avrcpEventFastRewindRelease
DESCRIPTION
Signal that Fast Rewind has been released
*/
void avrcpEventFastRewindRelease(hsTaskData* app);
/*************************************************************************
NAME
avrcpSendPlay
DESCRIPTUION
Sends an AVRCP Play.
*/
void avrcpSendPlay(hsTaskData* app);
/*************************************************************************
NAME
avrcpSendPause
DESCRIPTUION
Sends an AVRCP Pause.
*/
void avrcpSendPause(hsTaskData* app);
/*************************************************************************
NAME
handleAVRCPConnectReq
DESCRIPTION
This function is called to create an AVRCP connection.
*/
void handleAVRCPConnectReq(hsTaskData *app, APP_AVRCP_CONNECT_REQ_T *msg);
/*************************************************************************
NAME
avrcpConnectReq
DESCRIPTION
This function sends an internal message to create an AVRCP connection.
If delay_request is set to TRUE then the AVRCP connection is delayed by a fixed time.
*/
void avrcpConnectReq(hsTaskData *app, bdaddr addr, bool delay_request);
/*************************************************************************
NAME
avrcpDisconnectReq
DESCRIPTION
This function is called to disconnect an AVRCP connection
*/
void avrcpDisconnectReq(hsTaskData *app);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -