📄 hid.h
字号:
/*************************************************************************
*
* Used with ICCARM and AARM.
*
* (c) Copyright IAR Systems 2005
*
* File name : hid.c
* Description :
*
* History :
* 1. Data : December 19, 2005
* Author : Stanimir Bonev
* Description : Create
*
* $Revision: 1.1.2.1 $
**************************************************************************/
#include <arm_comm.h>
#ifndef __HID_H
#define __HID_H
typedef enum
{
HID_GET_REPORT = 1, HID_GET_IDLE, HID_GET_PROTOCOL,
HID_SET_REPORT = 9, HID_SET_IDLE, HID_SET_PROTOCOL,
} HidRequest_t;
typedef enum
{
NoSubclass = 0, BootInterfaceSubclass
} HidSubclassCodes_t;
typedef enum
{
None = 0, Keyboard, Mouse
} HidProtocolCodes_t;
typedef enum
{
Hid = 0x21, HidReport, HidPhysical,
} HidClassDescriptorTypes_t;
#pragma pack(1)
typedef struct
{
Int8U bLength;
Int8U bDescriptorType;
Int8U bcdHID[2];
Int8U bCountryCode;
Int8U bNumDescriptors;
Int8U bDescriptorHidType;
Int16U wDescriptorLength;
} UsbHidDescriptor_t;
#pragma pack()
#endif //__LPC_HID_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -