diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-12-30 11:57:04 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2023-01-09 20:13:35 +0100 |
commit | c4aaef2588e962d0bd99f7a88841fcf53956da6b (patch) | |
tree | 5beac952e90c53ac616a36b29c90002d6bfe8550 /decoders/ds243x/pd.py | |
parent | e50276324056e37149b5456070a097170d49725b (diff) | |
download | libsigrokdecode-c4aaef2588e962d0bd99f7a88841fcf53956da6b.tar.gz libsigrokdecode-c4aaef2588e962d0bd99f7a88841fcf53956da6b.zip |
adf435x: factor out inspection of 32bit words
Move the inspection of a completed 32bit word into the .decode_word()
routine. This simplifies checks for fatal constraints, as well as
optional inspection of deeper detail levels when extra parsers are
available.
Rename variables in the code path which accumulate bits. Add comments
to helper routines and to essential steps in complex interpretation
code paths. Eliminate the unused return value of the .decode_field()
method. Results in a lean and readable .decode() body.
Diffstat (limited to 'decoders/ds243x/pd.py')
0 files changed, 0 insertions, 0 deletions