Wixel SDK
Data Fields
HID_KEYBOARD_IN_REPORT Struct Reference

#include <usb_hid.h>

Data Fields

uint8 modifiers
 
uint8 _reserved
 
uint8 keyCodes [6]
 

Detailed Description

This struct contains the input data sent in HID reports from the keyboard interface to the host.

Definition at line 55 of file usb_hid.h.

Field Documentation

uint8 keyCodes[6]

Keyboard key code data: Each byte contains the key code of one key that is currently pressed (0 = no key). Up to 6 pressed keys at a time can be reported in this way. See usb_hid_constants.h for possible key code values. The keyboard's HID Report Descriptor is defined as keyboardReportDescriptor in usb_hid.c.

Definition at line 71 of file usb_hid.h.

uint8 modifiers

Keyboard modifier key data: Each bit contains the state of one modifier key (1 = pressed, 0 = not pressed), with the lowest bit representing Left Control (usage ID 0xE0) and the highest bit representing Right GUI (usage ID 0xE7) in the Keyboard/Keypad usage page. See usb_hid_constants.h for the meaning of each bit. The keyboard's HID Report Descriptor is defined as keyboardReportDescriptor in usb_hid.c.

Definition at line 64 of file usb_hid.h.


The documentation for this struct was generated from the following file: