Browse Source

feat(hid): Add preprocessor definitions for HID usages v1.21

Developed from specification:
https://usb.org/sites/default/files/hut1_21.pdf

Closes #217.  Prerequisite of #21.
xmkb
innovaker 4 years ago committed by Pete Johanson
parent
commit
3c0a0ff308
  1. 2566
      app/include/dt-bindings/zmk/hid_usage.h
  2. 43
      app/include/dt-bindings/zmk/hid_usage_pages.h

2566
app/include/dt-bindings/zmk/hid_usage.h

File diff suppressed because it is too large Load Diff

43
app/include/dt-bindings/zmk/hid_usage_pages.h

@ -0,0 +1,43 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*
* Based on HID Usage Tables 1.21,
* Copyright © 1996-2020, USB Implementers Forum,
* https://www.usb.org/sites/default/files/hut1_21.pdf
*/
#pragma once
#define HID_USAGE_GD (0x01) // Generic Desktop
#define HID_USAGE_SIM (0x02) // Simulation Controls
#define HID_USAGE_VR (0x03) // VR Controls
#define HID_USAGE_SPORT (0x04) // Sport Controls
#define HID_USAGE_GAME (0x05) // Game Controls
#define HID_USAGE_GDV (0x06) // Generic Device Controls
#define HID_USAGE_KEY (0x07) // Keyboard/Keypad
#define HID_USAGE_LED (0x08) // LED
#define HID_USAGE_TELEPHONY (0x0B) // Telephony Device
#define HID_USAGE_CONSUMER (0x0C) // Consumer
#define HID_USAGE_DIGITIZERS (0x0D) // Digitizers
#define HID_USAGE_HAPTICS (0x0E) // Haptics
#define HID_USAGE_PID (0x0F) // PID
#define HID_USAGE_EHT (0x12) // Eye and Head Trackers
#define HID_USAGE_AUXDISP (0x14) // Auxiliary Display
#define HID_USAGE_SENSORS (0x20) // Sensors
#define HID_USAGE_MEDICAL (0x40) // Medical Instrument
#define HID_USAGE_BRAILLE (0x41) // Braille Display
#define HID_USAGE_LIGHT (0x59) // Lighting And Illumination
#define HID_USAGE_MONITOR (0x80) // USB Monitor
#define HID_USAGE_MONITOR_VALUES (0x81) // Monitor Enumerated Values
#define HID_USAGE_MONITOR_VESA (0x82) // VESA Virtual Control
#define HID_USAGE_POWER (0x84) // Power
#define HID_USAGE_POS_BARCODE (0x8C) // Bar Code Scanner
#define HID_USAGE_POS_SCALE (0x8D) // Scale
#define HID_USAGE_POS_MSR (0x8E) // Magnetic Stripe Reading (MSR) Devices
#define HID_USAGE_POS_RESV (0x8F) // Reserved Point of Sale
#define HID_USAGE_CAMERA (0x90) // Camera Control
#define HID_USAGE_ARCADE (0x91) // Arcade
#define HID_USAGE_GAMING (0x92) // Gaming Device
#define HID_USAGE_FIDO (0xF1D0) // FIDO Alliance
Loading…
Cancel
Save