usb_desc_dump: Fix README
This commit is contained in:
parent
ec2652ee9a
commit
08c7d725f5
1 changed files with 62 additions and 58 deletions
|
|
@ -19,27 +19,29 @@ Following descriptors are supported.
|
||||||
|
|
||||||
Example optput:
|
Example optput:
|
||||||
|
|
||||||
usb_state: 90
|
```
|
||||||
|
usb_state: 90
|
||||||
Address:01
|
|
||||||
lowspeed:01
|
Address:01
|
||||||
idVendor:046A
|
lowspeed:01
|
||||||
idProduct:0011
|
idVendor:046A
|
||||||
|
idProduct:0011
|
||||||
Device Descriptor:
|
|
||||||
12 01 00 02 00 00 00 08 6A 04 11 00 00 01 00 00
|
Device Descriptor:
|
||||||
00 01
|
12 01 00 02 00 00 00 08 6A 04 11 00 00 01 00 00
|
||||||
|
00 01
|
||||||
Config0: len:0022
|
|
||||||
09 02 22 00 01 01 00 A0 32 09 04 00 00 01 03 01
|
Config0: len:0022
|
||||||
01 00 09 21 11 01 00 01 22 40 00 07 05 81 03 08
|
09 02 22 00 01 01 00 A0 32 09 04 00 00 01 03 01
|
||||||
00 0A
|
01 00 09 21 11 01 00 01 22 40 00 07 05 81 03 08
|
||||||
|
00 0A
|
||||||
Report0: len:0040
|
|
||||||
05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01
|
Report0: len:0040
|
||||||
75 01 95 08 81 02 95 01 75 08 81 01 95 03 75 01
|
05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01
|
||||||
05 08 19 01 29 03 91 02 95 05 75 01 91 01 95 06
|
75 01 95 08 81 02 95 01 75 08 81 01 95 03 75 01
|
||||||
75 08 15 00 26 DD 00 05 07 19 00 29 DD 81 00 C0
|
05 08 19 01 29 03 91 02 95 05 75 01 91 01 95 06
|
||||||
|
75 08 15 00 26 DD 00 05 07 19 00 29 DD 81 00 C0
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -52,40 +54,42 @@ Or you can use command line tool like hidrd.
|
||||||
|
|
||||||
- https://github.com/DIGImend/hidrd
|
- https://github.com/DIGImend/hidrd
|
||||||
|
|
||||||
$ cat | hidrd-convert -i hex -o spec
|
```
|
||||||
05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01
|
$ cat | hidrd-convert -i hex -o spec
|
||||||
75 01 95 08 81 02 95 01 75 08 81 01 95 03 75 01
|
05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01
|
||||||
05 08 19 01 29 03 91 02 95 05 75 01 91 01 95 06
|
75 01 95 08 81 02 95 01 75 08 81 01 95 03 75 01
|
||||||
75 08 15 00 26 DD 00 05 07 19 00 29 DD 81 00 C0
|
05 08 19 01 29 03 91 02 95 05 75 01 91 01 95 06
|
||||||
Usage Page (Desktop), ; Generic desktop controls (01h)
|
75 08 15 00 26 DD 00 05 07 19 00 29 DD 81 00 C0
|
||||||
Usage (Keyboard), ; Keyboard (06h, application collection)
|
Usage Page (Desktop), ; Generic desktop controls (01h)
|
||||||
Collection (Application),
|
Usage (Keyboard), ; Keyboard (06h, application collection)
|
||||||
Usage Page (Keyboard), ; Keyboard/keypad (07h)
|
Collection (Application),
|
||||||
Usage Minimum (KB Leftcontrol), ; Keyboard left control (E0h, dynamic value)
|
Usage Page (Keyboard), ; Keyboard/keypad (07h)
|
||||||
Usage Maximum (KB Right GUI), ; Keyboard right GUI (E7h, dynamic value)
|
Usage Minimum (KB Leftcontrol), ; Keyboard left control (E0h, dynamic value)
|
||||||
Logical Minimum (0),
|
Usage Maximum (KB Right GUI), ; Keyboard right GUI (E7h, dynamic value)
|
||||||
Logical Maximum (1),
|
Logical Minimum (0),
|
||||||
Report Size (1),
|
Logical Maximum (1),
|
||||||
Report Count (8),
|
Report Size (1),
|
||||||
Input (Variable),
|
Report Count (8),
|
||||||
Report Count (1),
|
Input (Variable),
|
||||||
Report Size (8),
|
Report Count (1),
|
||||||
Input (Constant),
|
Report Size (8),
|
||||||
Report Count (3),
|
Input (Constant),
|
||||||
Report Size (1),
|
Report Count (3),
|
||||||
Usage Page (LED), ; LEDs (08h)
|
Report Size (1),
|
||||||
Usage Minimum (01h),
|
Usage Page (LED), ; LEDs (08h)
|
||||||
Usage Maximum (03h),
|
Usage Minimum (01h),
|
||||||
Output (Variable),
|
Usage Maximum (03h),
|
||||||
Report Count (5),
|
Output (Variable),
|
||||||
Report Size (1),
|
Report Count (5),
|
||||||
Output (Constant),
|
Report Size (1),
|
||||||
Report Count (6),
|
Output (Constant),
|
||||||
Report Size (8),
|
Report Count (6),
|
||||||
Logical Minimum (0),
|
Report Size (8),
|
||||||
Logical Maximum (221),
|
Logical Minimum (0),
|
||||||
Usage Page (Keyboard), ; Keyboard/keypad (07h)
|
Logical Maximum (221),
|
||||||
Usage Minimum (None), ; No event (00h, selector)
|
Usage Page (Keyboard), ; Keyboard/keypad (07h)
|
||||||
Usage Maximum (KP Hexadecimal), ; Keypad Hexadecimal (DDh, selector)
|
Usage Minimum (None), ; No event (00h, selector)
|
||||||
Input,
|
Usage Maximum (KP Hexadecimal), ; Keypad Hexadecimal (DDh, selector)
|
||||||
End Collection
|
Input,
|
||||||
|
End Collection
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue