hid_keyboard_auth.h

来自「CSR蓝牙无线键盘源码,实现无线键盘功能」· C头文件 代码 · 共 67 行

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

FILE NAME
    hid_keyboard_auth.h
DESCRIPTION
    This file contains the authentication functions.    
*/

#ifndef _HID_KEYBOARD_AUTH_H_
#define _HID_KEYBOARD_AUTH_H_

/*************************************************************************
NAME    
    appIsPinCodeEntry
DESCRIPTION
    Returns boolean indicating if pin code entry is currently in progress.
RETURNS
    bool - TRUE if pin code is being entered, FALSE otherwise.
*/
extern bool appIsPinCodeEntry(appTaskData *theApp);

/*************************************************************************
NAME    
    appIsAuthenticated
DESCRIPTION
    Returns boolean indicating if device has completed authentication.
RETURNS
    bool - TRUE if authentication successful, FALSE otherwise.
*/
extern bool appIsAuthenticated(appTaskData *theApp);

/*************************************************************************
NAME    
    appStartPinCodeEntry
DESCRIPTION
    This is called when authenticating has started, normally when a pin
    code indication is received.
RETURNS
    void     
*/
extern void appStartPinCodeEntry(appTaskData *theApp);

/*************************************************************************
NAME    
    appStopPinCodeEntry
DESCRIPTION
    This function stops pin code entry.
RETURNS
    void     
*/
extern void appStopPinCodeEntry(appTaskData *theApp, bool success);

/*************************************************************************
NAME    
    appHandleDataPinCode
DESCRIPTION
    Handles data on interrupt channel passed down by firmware.  This
    function attempts to build up a pin code.
RETURNS
    void     
*/
void appHandleDataPinCode(appTaskData *theApp, Source source);

#endif

⌨️ 快捷键说明

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