diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-19 19:41:18 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-20 20:15:04 +0200 |
commit | b094fdfc1c1cfe1e34f95c62e73241cff5e4074c (patch) | |
tree | e626318c24f72a49123d9c1095410e3868ccd6c6 /tests/lib.h | |
parent | 33687d6ed7b923662566e6a6f2761792bb087fb4 (diff) | |
download | libsigrokdecode-b094fdfc1c1cfe1e34f95c62e73241cff5e4074c.tar.gz libsigrokdecode-b094fdfc1c1cfe1e34f95c62e73241cff5e4074c.zip |
numbers_and_state: introduce decoder (based on vector slicer)
The idea was taken from the vector slicer as suggested in github PR 17.
The code was rewritten to avoid cluttering the decoder set with lots of
tiny implementations. Create a single decoder which does all of the bit
accumulation as well as number format interpretation and also includes
number to text formatting with user selectable presentations. Optional
clock is supported, to avoid too many annotations in glitchy setups. The
IEEE 754 format was added as another interpretation. The enum code path
accepts data files in either the Python or JSON format (the latter feels
backwards to me). Putting enums on separate rows helps visualize state
transitions. Users can disable GUI traces or select CLI rows to silence
the output if it feels noisy.
The most appropriate (useful, and usable) number of supported channels
is yet to get determined. This version accepts up to 16 inputs.
Diffstat (limited to 'tests/lib.h')
0 files changed, 0 insertions, 0 deletions