headset_security.h

来自「BLUETOOTH Stereo Headset Source Code,含CV」· C头文件 代码 · 共 82 行

H
82
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.6.2-release

FILE NAME
    headset_security.h
    
DESCRIPTION
    
*/


#ifndef _HEADSET_SECURITY_H_
#define _HEADSET_SECURITY_H_


/*************************************************************************
NAME    
     headsetHandlePinCodeInd
    
DESCRIPTION
     This function is called on receipt on an CL_PIN_CODE_IND message
     being recieved.  The AV Headset default pin code is sent back.     
*/
void headsetHandlePinCodeInd(const headsetTaskData *app, const CL_SM_PIN_CODE_IND_T *ind);


/****************************************************************************
NAME    
    headsetHandleAuthoriseInd
    
DESCRIPTION
    Request to authorise access to a particular service.
*/
void headsetHandleAuthoriseInd(const CL_SM_AUTHORISE_IND_T *ind);


/****************************************************************************
NAME    
    headsetHandleAuthenticateCfm
    
DESCRIPTION
    Indicates whether the authentication succeeded or not.
*/
void headsetHandleAuthenticateCfm(const CL_SM_AUTHENTICATE_CFM_T *cfm);


/****************************************************************************
NAME    
    headsetEnterPairingMode
    
DESCRIPTION
    Put the headset into pairing mode. The headset will only supply a valid 
    PIN code if in pairing mode, otherwise all authentication attempts will
    be rejected.
*/
void headsetEnterPairingMode(headsetTaskData *app);


/****************************************************************************
NAME    
    headsetEnterPairingMode
    
DESCRIPTION
    Exit pairing mode. 
*/
void headsetExitPairingMode(headsetTaskData *app);

/*****************************************************************************
NAME    
    headsetClearPairedDevices
    
DESCRIPTION
    Clear paired device list, last connected PSKeys and the last codec connected 
*/
void headsetClearPairedDevices(headsetTaskData *app);




#endif /* _HEADSET_SECURITY_H_ */

⌨️ 快捷键说明

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