📄 headset_common.h
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.4.2-release
FILE NAME
headset_common.h
DESCRIPTION
*/
#ifndef _HEADSET_COMMON_H_
#define _HEADSET_COMMON_H_
/*************************************************************************
NAME
setA2dpState
DESCRIPTION
Set the AV Headset A2DP State to the specified state
*/
void setA2dpState(headsetTaskData *app, const headsetA2dpState state);
/*************************************************************************
NAME
setAvrcpState
DESCRIPTION
Set the AV Headset AVRCP State to the specified state
*/
void setAvrcpState(headsetTaskData *app, const headsetAvrcpState state);
/*************************************************************************
NAME
setHfpState
DESCRIPTION
Update the local hfp state to the new state.
*/
void setHfpState(headsetTaskData *app, const headsetHfpState state);
/*************************************************************************
NAME
setPcmState
DESCRIPTION
Update the local pcm state to the new state.
*/
void setPcmState(headsetTaskData *app, const pcmAudioState state);
/****************************************************************************
NAME
headsetHandleRemoteSuppFeatures
DESCRIPTION
Supported features of the remote device contained in the message if the
read succeeded.
*/
void headsetHandleRemoteSuppFeatures(headsetTaskData *app, const CL_DM_REMOTE_FEATURES_CFM_T *cfm);
/****************************************************************************
NAME
isHeadsetIdle
DESCRIPTION
Returns TRUE if headset is idle i.e. no a2dp, avrcp or hfp/ hsp
connections are currently established. FALSE otherwise.
*/
bool isHeadsetIdle(const headsetTaskData *app);
/****************************************************************************
NAME
isHeadsetPairing
DESCRIPTION
Returns TRUE if headset is currently in pairing mode, FALSE otherwise.
*/
bool isHeadsetPairing(const headsetTaskData *app);
/****************************************************************************
NAME
headsetConnectToLastDevices
DESCRIPTION
Connect to last used AG and AV source.
*/
void headsetConnectToLastDevices(headsetTaskData *app);
/****************************************************************************
NAME
updateHeadsetScanning
DESCRIPTION
check if page scanning should be enabled
*/
void updateHeadsetScanning(headsetTaskData *app);
/****************************************************************************
NAME
headsetRestartAV
DESCRIPTION
Send message to restart the AV streaming after a specified delay
*/
void headsetRestartAV(headsetTaskData *app);
#endif /* _HEADSET_COMMON_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -