Created
December 2, 2024 14:30
-
-
Save Sainan/afe4a560b1b3b2fedf7d920a7e39dd19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ hid-decode /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2/3-2:1.1/0003:18D1:9400.0002/hidraw/hidraw1/device/report_descriptor | |
# device 0:0 | |
# 0x05, 0x01, // Usage Page (Generic Desktop) 0 | |
# 0x09, 0x05, // Usage (Game Pad) 2 | |
# 0xa1, 0x01, // Collection (Application) 4 | |
# 0x85, 0x03, // Report ID (3) 6 | |
# 0x05, 0x01, // Usage Page (Generic Desktop) 8 | |
# 0x75, 0x04, // Report Size (4) 10 | |
# 0x95, 0x01, // Report Count (1) 12 | |
# 0x25, 0x07, // Logical Maximum (7) 14 | |
# 0x46, 0x3b, 0x01, // Physical Maximum (315) 16 | |
# 0x65, 0x14, // Unit (EnglishRotation: deg) 19 | |
# 0x09, 0x39, // Usage (Hat switch) 21 | |
# 0x81, 0x42, // Input (Data,Var,Abs,Null) 23 | |
# 0x45, 0x00, // Physical Maximum (0) 25 | |
# 0x65, 0x00, // Unit (None) 27 | |
# 0x75, 0x01, // Report Size (1) 29 | |
# 0x95, 0x04, // Report Count (4) 31 | |
# 0x81, 0x01, // Input (Cnst,Arr,Abs) 33 | |
# 0x05, 0x09, // Usage Page (Button) 35 | |
# 0x15, 0x00, // Logical Minimum (0) 37 | |
# 0x25, 0x01, // Logical Maximum (1) 39 | |
# 0x75, 0x01, // Report Size (1) 41 | |
# 0x95, 0x0f, // Report Count (15) 43 | |
# 0x09, 0x12, // Usage (Vendor Usage 0x12) 45 | |
# 0x09, 0x11, // Usage (Vendor Usage 0x11) 47 | |
# 0x09, 0x14, // Usage (Vendor Usage 0x14) 49 | |
# 0x09, 0x13, // Usage (Vendor Usage 0x13) 51 | |
# 0x09, 0x0d, // Usage (Vendor Usage 0x0d) 53 | |
# 0x09, 0x0c, // Usage (Vendor Usage 0x0c) 55 | |
# 0x09, 0x0b, // Usage (Vendor Usage 0x0b) 57 | |
# 0x09, 0x0f, // Usage (Vendor Usage 0x0f) 59 | |
# 0x09, 0x0e, // Usage (Vendor Usage 0x0e) 61 | |
# 0x09, 0x08, // Usage (Vendor Usage 0x08) 63 | |
# 0x09, 0x07, // Usage (Vendor Usage 0x07) 65 | |
# 0x09, 0x05, // Usage (Vendor Usage 0x05) 67 | |
# 0x09, 0x04, // Usage (Vendor Usage 0x04) 69 | |
# 0x09, 0x02, // Usage (Vendor Usage 0x02) 71 | |
# 0x09, 0x01, // Usage (Vendor Usage 0x01) 73 | |
# 0x81, 0x02, // Input (Data,Var,Abs) 75 | |
# 0x75, 0x01, // Report Size (1) 77 | |
# 0x95, 0x01, // Report Count (1) 79 | |
# 0x81, 0x01, // Input (Cnst,Arr,Abs) 81 | |
# 0x05, 0x01, // Usage Page (Generic Desktop) 83 | |
# 0x15, 0x01, // Logical Minimum (1) 85 | |
# 0x26, 0xff, 0x00, // Logical Maximum (255) 87 | |
# 0x09, 0x01, // Usage (Pointer) 90 | |
# 0xa1, 0x00, // Collection (Physical) 92 | |
# 0x09, 0x30, // Usage (X) 94 | |
# 0x09, 0x31, // Usage (Y) 96 | |
# 0x75, 0x08, // Report Size (8) 98 | |
# 0x95, 0x02, // Report Count (2) 100 | |
# 0x81, 0x02, // Input (Data,Var,Abs) 102 | |
# 0xc0, // End Collection 104 | |
# 0x09, 0x01, // Usage (Pointer) 105 | |
# 0xa1, 0x00, // Collection (Physical) 107 | |
# 0x09, 0x32, // Usage (Z) 109 | |
# 0x09, 0x35, // Usage (Rz) 111 | |
# 0x75, 0x08, // Report Size (8) 113 | |
# 0x95, 0x02, // Report Count (2) 115 | |
# 0x81, 0x02, // Input (Data,Var,Abs) 117 | |
# 0xc0, // End Collection 119 | |
# 0x05, 0x02, // Usage Page (Simulation Controls) 120 | |
# 0x75, 0x08, // Report Size (8) 122 | |
# 0x95, 0x02, // Report Count (2) 124 | |
# 0x15, 0x00, // Logical Minimum (0) 126 | |
# 0x26, 0xff, 0x00, // Logical Maximum (255) 128 | |
# 0x09, 0xc5, // Usage (Brake) 131 | |
# 0x09, 0xc4, // Usage (Accelerator) 133 | |
# 0x81, 0x02, // Input (Data,Var,Abs) 135 | |
# 0x05, 0x0c, // Usage Page (Consumer Devices) 137 | |
# 0x15, 0x00, // Logical Minimum (0) 139 | |
# 0x25, 0x01, // Logical Maximum (1) 141 | |
# 0x09, 0xe9, // Usage (Volume Up) 143 | |
# 0x09, 0xea, // Usage (Volume Down) 145 | |
# 0x75, 0x01, // Report Size (1) 147 | |
# 0x95, 0x02, // Report Count (2) 149 | |
# 0x81, 0x02, // Input (Data,Var,Abs) 151 | |
# 0x09, 0xcd, // Usage (Play/Pause) 153 | |
# 0x95, 0x01, // Report Count (1) 155 | |
# 0x81, 0x02, // Input (Data,Var,Abs) 157 | |
# 0x95, 0x05, // Report Count (5) 159 | |
# 0x81, 0x01, // Input (Cnst,Arr,Abs) 161 | |
# 0x85, 0x05, // Report ID (5) 163 | |
# 0x06, 0x0f, 0x00, // Usage Page (Vendor Usage Page 0x0f) 165 | |
# 0x09, 0x97, // Usage (Vendor Usage 0x97) 168 | |
# 0x75, 0x10, // Report Size (16) 170 | |
# 0x95, 0x02, // Report Count (2) 172 | |
# 0x27, 0xff, 0xff, 0x00, 0x00, // Logical Maximum (65535) 174 | |
# 0x91, 0x02, // Output (Data,Var,Abs) 179 | |
# 0xc0, // End Collection 181 | |
# | |
R: 182 05 01 09 05 a1 01 85 03 05 01 75 04 95 01 25 07 46 3b 01 65 14 09 39 81 42 45 00 65 00 75 01 95 04 81 01 05 09 15 00 25 01 75 01 95 0f 09 12 09 11 09 14 09 13 09 0d 09 0c 09 0b 09 0f 09 0e 09 08 09 07 09 05 09 04 09 02 09 01 81 02 75 01 95 01 81 01 05 01 15 01 26 ff 00 09 01 a1 00 09 30 09 31 75 08 95 02 81 02 c0 09 01 a1 00 09 32 09 35 75 08 95 02 81 02 c0 05 02 75 08 95 02 15 00 26 ff 00 09 c5 09 c4 81 02 05 0c 15 00 25 01 09 e9 09 ea 75 01 95 02 81 02 09 cd 95 01 81 02 95 05 81 01 85 05 06 0f 00 09 97 75 10 95 02 27 ff ff 00 00 91 02 c0 | |
N: device 0:0 | |
I: 3 0001 0001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment