📄 hid_keyboard_led.h
字号:
/****************************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -