⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hid_mouse_led.h

📁 蓝牙鼠标的例程
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2005-2006
Part of BlueLab 3.5.2-release

FILE NAME
    hid_mouse_led.h  
DESCRIPTION
    
*/

#ifndef __HID_MOUSE_LED_H
#define __HID_MOUSE_LED_H

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

/* Defines which PIOs are used for status LED */
#ifdef HW_DEV_1409
#define LED_PIO_MASK	(0)		/* DEV_1409 uses Aux DAC for LED control */
#else
#define LED_PIO_MASK 	(1 << 4)
#endif

/* 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 + -