]> sigrok.org Git - libsigrokdecode.git/commitdiff
adf435x: factor out inspection of 32bit words
authorGerhard Sittig <redacted>
Fri, 30 Dec 2022 10:57:04 +0000 (11:57 +0100)
committerGerhard Sittig <redacted>
Mon, 9 Jan 2023 19:13:35 +0000 (20:13 +0100)
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.


No differences found