libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
USB HID Type Definitions

Defined Constants and Types for the USB HID Type Definitions More...

Data Structures

struct  usb_hid_descriptor
 

Macros

#define USB_CLASS_HID   3
 
#define USB_HID_SUBCLASS_NO   0
 
#define USB_HID_SUBCLASS_BOOT_INTERFACE   1
 
#define USB_HID_INTERFACE_PROTOCOL_NONE   0
 
#define USB_HID_INTERFACE_PROTOCOL_KEYBOARD   1
 
#define USB_HID_INTERFACE_PROTOCOL_MOUSE   2
 
#define USB_HID_DT_HID   0x21
 
#define USB_HID_DT_REPORT   0x22
 
#define USB_HID_DT_PHYSICAL   0x23
 
#define USB_DT_HID   USB_HID_DT_HID
 
#define USB_DT_REPORT   USB_HID_DT_REPORT
 
#define USB_HID_REQ_TYPE_GET_REPORT   0x01
 
#define USB_HID_REQ_TYPE_GET_IDLE   0x02
 
#define USB_HID_REQ_TYPE_GET_PROTOCOL   0x03
 
#define USB_HID_REQ_TYPE_SET_REPORT   0x09
 
#define USB_HID_REQ_TYPE_SET_IDLE   0x0A
 
#define USB_HID_REQ_TYPE_SET_PROTOCOL   0x0B
 
#define USB_HID_REPORT_TYPE_INPUT   1
 
#define USB_HID_REPORT_TYPE_OUTPUT   2
 
#define USB_HID_REPORT_TYPE_FEATURE   3
 
#define USB_HID_PROTOCOL_BOOT   0
 
#define USB_HID_PROTOCOL_REPORT   1
 

Detailed Description

Defined Constants and Types for the USB HID Type Definitions

Version
1.0.0
Author
© 2010 Gareth McMullin garet.nosp@m.h@bl.nosp@m.acksp.nosp@m.here.nosp@m..co.n.nosp@m.z
Date
10 March 2013

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ USB_CLASS_HID

#define USB_CLASS_HID   3

Definition at line 43 of file hid.h.

◆ USB_DT_HID

#define USB_DT_HID   USB_HID_DT_HID
Deprecated:
Use USB_HID_DT_HID

Definition at line 59 of file hid.h.

◆ USB_DT_REPORT

#define USB_DT_REPORT   USB_HID_DT_REPORT
Deprecated:
Use USB_HID_DT_REPORT

Definition at line 61 of file hid.h.

◆ USB_HID_DT_HID

#define USB_HID_DT_HID   0x21

Definition at line 55 of file hid.h.

◆ USB_HID_DT_PHYSICAL

#define USB_HID_DT_PHYSICAL   0x23

Definition at line 57 of file hid.h.

◆ USB_HID_DT_REPORT

#define USB_HID_DT_REPORT   0x22

Definition at line 56 of file hid.h.

◆ USB_HID_INTERFACE_PROTOCOL_KEYBOARD

#define USB_HID_INTERFACE_PROTOCOL_KEYBOARD   1

Definition at line 51 of file hid.h.

◆ USB_HID_INTERFACE_PROTOCOL_MOUSE

#define USB_HID_INTERFACE_PROTOCOL_MOUSE   2

Definition at line 52 of file hid.h.

◆ USB_HID_INTERFACE_PROTOCOL_NONE

#define USB_HID_INTERFACE_PROTOCOL_NONE   0

Definition at line 50 of file hid.h.

◆ USB_HID_PROTOCOL_BOOT

#define USB_HID_PROTOCOL_BOOT   0

Definition at line 77 of file hid.h.

◆ USB_HID_PROTOCOL_REPORT

#define USB_HID_PROTOCOL_REPORT   1

Definition at line 78 of file hid.h.

◆ USB_HID_REPORT_TYPE_FEATURE

#define USB_HID_REPORT_TYPE_FEATURE   3

Definition at line 74 of file hid.h.

◆ USB_HID_REPORT_TYPE_INPUT

#define USB_HID_REPORT_TYPE_INPUT   1

Definition at line 72 of file hid.h.

◆ USB_HID_REPORT_TYPE_OUTPUT

#define USB_HID_REPORT_TYPE_OUTPUT   2

Definition at line 73 of file hid.h.

◆ USB_HID_REQ_TYPE_GET_IDLE

#define USB_HID_REQ_TYPE_GET_IDLE   0x02

Definition at line 65 of file hid.h.

◆ USB_HID_REQ_TYPE_GET_PROTOCOL

#define USB_HID_REQ_TYPE_GET_PROTOCOL   0x03

Definition at line 66 of file hid.h.

◆ USB_HID_REQ_TYPE_GET_REPORT

#define USB_HID_REQ_TYPE_GET_REPORT   0x01

Definition at line 64 of file hid.h.

◆ USB_HID_REQ_TYPE_SET_IDLE

#define USB_HID_REQ_TYPE_SET_IDLE   0x0A

Definition at line 68 of file hid.h.

◆ USB_HID_REQ_TYPE_SET_PROTOCOL

#define USB_HID_REQ_TYPE_SET_PROTOCOL   0x0B

Definition at line 69 of file hid.h.

◆ USB_HID_REQ_TYPE_SET_REPORT

#define USB_HID_REQ_TYPE_SET_REPORT   0x09

Definition at line 67 of file hid.h.

◆ USB_HID_SUBCLASS_BOOT_INTERFACE

#define USB_HID_SUBCLASS_BOOT_INTERFACE   1

Definition at line 47 of file hid.h.

◆ USB_HID_SUBCLASS_NO

#define USB_HID_SUBCLASS_NO   0

Definition at line 46 of file hid.h.