Data Structures | Defines | Typedefs | Enumerations

HID.h File Reference

Common definitions and declarations for the library USB HID Class driver. More...

#include "../../USB.h"
#include <string.h>

Data Structures

struct  USB_HID_Descriptor_t
 HID class-specific HID Descriptor. More...
struct  USB_MouseReport_Data_t
 Standard HID Boot Protocol Mouse Report. More...
struct  USB_KeyboardReport_Data_t
 Standard HID Boot Protocol Keyboard Report. More...

Defines

#define REQ_GetReport   0x01
#define REQ_GetIdle   0x02
#define REQ_SetReport   0x09
#define REQ_SetIdle   0x0A
#define REQ_GetProtocol   0x03
#define REQ_SetProtocol   0x0B
#define DTYPE_HID   0x21
#define DTYPE_Report   0x22
#define HID_NON_BOOT_PROTOCOL   0x00
#define HID_BOOT_KEYBOARD_PROTOCOL   0x01
#define HID_BOOT_MOUSE_PROTOCOL   0x02
#define HID_KEYBOARD_MODIFER_LEFTCTRL   (1 << 0)
#define HID_KEYBOARD_MODIFER_LEFTSHIFT   (1 << 1)
#define HID_KEYBOARD_MODIFER_LEFTALT   (1 << 2)
#define HID_KEYBOARD_MODIFER_LEFTGUI   (1 << 3)
#define HID_KEYBOARD_MODIFER_RIGHTCTRL   (1 << 4)
#define HID_KEYBOARD_MODIFER_RIGHTSHIFT   (1 << 5)
#define HID_KEYBOARD_MODIFER_RIGHTALT   (1 << 6)
#define HID_KEYBOARD_MODIFER_RIGHTGUI   (1 << 7)
#define HID_KEYBOARD_LED_NUMLOCK   (1 << 0)
#define HID_KEYBOARD_LED_CAPSLOCK   (1 << 1)
#define HID_KEYBOARD_LED_SCROLLLOCK   (1 << 2)
#define HID_KEYBOARD_LED_KATANA   (1 << 3)

Typedefs

typedef uint8_t USB_Descriptor_HIDReport_Datatype_t

Enumerations

enum  HID_ReportItemTypes_t {
  REPORT_ITEM_TYPE_In = 0,
  REPORT_ITEM_TYPE_Out = 1,
  REPORT_ITEM_TYPE_Feature = 2
}

Detailed Description

Common definitions and declarations for the library USB HID Class driver.

Note:
This file should not be included directly. It is automatically included as needed by the class driver dispatch header located in LUFA/Drivers/USB/Class/HID.h.