WIP: tabular format for report descriptors
Example output for hid-decode -t
Report ID 1 (Input), size 32 bytes:
Usage Page | Usage | Logical Range | Size | Unit |
-----------------|---------------|----------------|---------------|------------------|
Digitizers | Tip Switch | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | Undefined | 0, 1 | 7 bits | (SILinear: cm)⁻² |
Digitizers | Contact Id | 0, 1 | 8 bits | (SILinear: cm)⁻² |
Generic Desktop | X | 0, 5120 | 16 bits | (SILinear: cm)⁻² |
Generic Desktop | Y | 0, 3200 | 16 bits | (SILinear: cm)⁻² |
Digitizers | Tip Switch | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | Undefined | 0, 1 | 7 bits | (SILinear: cm)⁻² |
Digitizers | Contact Id | 0, 1 | 8 bits | (SILinear: cm)⁻² |
...
Report ID 8 (Input), size 13 bytes:
Usage Page | Usage | Logical Range | Size | Unit |
-----------------|---------------|----------------|---------------|--------------------------|
Digitizers | Tip Switch | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | Barrel Switch | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | Invert | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | Eraser | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | Undefined | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | In Range | 0, 1 | 1 bits | (SILinear: cm)⁻² |
Digitizers | Undefined | 0, 1 | 2 bits | (SILinear: cm)⁻² |
Digitizers | Contact Id | 0, 1 | 8 bits | (SILinear: cm)⁻² |
Sits on top of !97 (merged) and !110 (merged) atm, so a bit of rework is needed.