X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/51566d1a811f43dc39f38cb597de44ba9363d974..e625fd6df33ab2112779728622a717589f0b8417:/LUFA/Drivers/USB/Class/Common/HID.h diff --git a/LUFA/Drivers/USB/Class/Common/HID.h b/LUFA/Drivers/USB/Class/Common/HID.h index f6b49dfce..d53b12f6b 100644 --- a/LUFA/Drivers/USB/Class/Common/HID.h +++ b/LUFA/Drivers/USB/Class/Common/HID.h @@ -87,6 +87,14 @@ #define HID_BOOT_KEYBOARD_PROTOCOL 0x01 /* Type Defines: */ + /** Enum for the different types of HID reports. */ + enum HID_ReportItemTypes_t + { + REPORT_ITEM_TYPE_In = 1, /**< Indicates that the item is an IN report type. */ + REPORT_ITEM_TYPE_Out = 2, /**< Indicates that the item is an OUT report type. */ + REPORT_ITEM_TYPE_Feature = 3, /**< Indicates that the item is a FEATURE report type. */ + }; + /** Type define for the HID class specific HID descriptor, to describe the HID device's specifications. Refer to the HID * specification for details on the structure elements. */ @@ -116,7 +124,7 @@ { uint8_t Modifier; /**< Keyboard modifier byte, indicating pressed modifier keys (such as Shift, Control, etc.) */ uint8_t Reserved; /**< Reserved for OEM use, always set to 0 */ - uint8_t KeyCode; /**< Key code of the currently pressed key */ + uint8_t KeyCode[6]; /**< Key codes of the currently pressed keys */ } USB_KeyboardReport_Data_t; /** Type define for the data type used to store HID report descriptor elements. */