最終更新:2017-07-13 (木) 17:02:09 (2472d)  

hidrd-convert
Top / hidrd-convert

convert a HID report descriptor

Usage: hidrd-convert [OPTION]... [INPUT [OUTPUT]]
Convert a HID report descriptor.
With no INPUT, or when INPUT is -, read standard input.
With no OUTPUT, or when OUTPUT is -, write standard output.

Options:
  -h, --help                       this help message
  --hf, --help-formats             description of formats
                                   and their options
  -i, --input-format=FORMAT        use FORMAT for input
  --io=LIST, --input-options=LIST  use LIST input format options
  -o, --output-format=FORMAT       use FORMAT for output
  --oo=LIST, --output-options=LIST use LIST output format options

Formats:

  natv [IO] - native
   xml [IO] - XML
  spec [ O] - specification example
  code [ O] - source code

Default options are -i natv -o natv.

パッケージ

ヘルプ

  • hidrd-convert --help
  • hidrd-convert --help-formats

  • usbhid-dump -a, --address=bus[:dev]
    $ sudo usbhid-dump -a2:3 -i0 | grep -v : | xxd -r -p | hidrd-convert -o spec
    Usage Page (Desktop),               ; Generic desktop controls (01h)
    Usage (Mouse),                      ; Mouse (02h, application collection)
    Collection (Application),
        Usage (Pointer),                ; Pointer (01h, physical collection)
        Collection (Physical),
            Usage Page (Button),        ; Button (09h)
            Usage Minimum (01h),
            Usage Maximum (03h),
            Logical Minimum (0),
            Logical Maximum (1),
            Report Size (1),
            Report Count (3),
            Input (Variable),
            Report Size (5),
            Report Count (1),
            Input (Constant),
            Usage Page (Desktop),       ; Generic desktop controls (01h)
            Usage (X),                  ; X (30h, dynamic value)
            Usage (Y),                  ; Y (31h, dynamic value)
            Usage (Wheel),              ; Wheel (38h, dynamic value)
            Logical Minimum (-127),
            Logical Maximum (127),
            Report Size (8),
            Report Count (3),
            Input (Variable, Relative),
        End Collection,
    End Collection

関連