hid_keyboard_led.h

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

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

FILE NAME
    hid_keyboard_led.h  
DESCRIPTION
    This file contains the LED control task.
*/

#ifndef __HID_KEYBOARD_LED_H
#define __HID_KEYBOARD_LED_H

/****************************************************************************
    Header files
*/
#include <message.h>


/* Number of LED priorities */
#define LED_NUM_PRIORITIES  (2)

/* LED Task Structure */
typedef struct
{
    TaskData    task;
    uint16      state;
    int         onPeriod;
    int         offPeriod;
    int         onPeriodTable[LED_NUM_PRIORITIES];
    int         offPeriodTable[LED_NUM_PRIORITIES];
    uint8       priority;
} appLedTaskData;


/*************************************************************************
NAME    
    appLedInit   
DESCRIPTION
    Initialise LED task.
RETURNS
    void     
*/
extern void appLedInit(appLedTaskData *theLed);

/*************************************************************************
NAME    
    appLedUpdate   
DESCRIPTION
    Changes LED flashing rate.
RETURNS
    void     
*/
extern void appLedUpdate(appLedTaskData *theLed, int onPeriod, int offPeriod, uint8 priority);

/*************************************************************************
NAME    
    appLedSetPriority   
DESCRIPTION
    Changes LED priority.
RETURNS
    void     
*/
extern void appLedSetPriority(appLedTaskData *theLed, uint8 priority);

#endif

⌨️ 快捷键说明

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