diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2023-07-30 18:01:29 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2023-07-30 22:44:22 +0200 |
commit | df3a4a3bd1763324765f53932d878525a4a20102 (patch) | |
tree | a7d6dd4371e7c5bef79159248976e2ed0e76fbf0 /decoders/i2cdemux/i2cdemux.py | |
parent | bb5af7af06b8fb1b37a88a03a94db3e35a7d15de (diff) | |
download | libsigrokdecode-master.tar.gz libsigrokdecode-master.zip |
The previous implementation of the SAE J1850 (VPW) decoder dumped bytes
on one row and added another row with textual labels what those upper
row bytes would mean. That allowed manual inspection at a rather low
level of abstraction, but is not idiomatic and reduces usability of the
decoder.
Rewrite the decoder to become more idiomatic, and to prepare future
inspection of more upper layers. Concentrate all timestamp gathering in
.decode(), use PD API v3 for the IFS timeout as well, run handlers for
the lowest level symbols. Pass accumulated protocol bytes to a fields
handler, flush accumulated details when EOF is seen. Prepare validity
checks (checksum verification), and prepare to handle data bytes when
all header fields were seen and validity was checked. Emit annotations
in proper classes to improve usability, start emitting warnings. Force
re-synchronization when input stream conditions are not handled.
Diffstat (limited to 'decoders/i2cdemux/i2cdemux.py')
0 files changed, 0 insertions, 0 deletions