diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-08-29 12:31:31 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-08-30 07:23:58 +0200 |
commit | 1dfaf1e8a7df8e4cc251aeea4afb35cfa3fa219c (patch) | |
tree | c1dac13f50d5ee8b00ff2a69b4dace63f826e5f6 /decoders/common/srdhelper/__init__.py | |
parent | e4f70391abbb153364a534d45a59026961ce1b1f (diff) | |
download | libsigrokdecode-1dfaf1e8a7df8e4cc251aeea4afb35cfa3fa219c.tar.gz libsigrokdecode-1dfaf1e8a7df8e4cc251aeea4afb35cfa3fa219c.zip |
sle44xx: rephrase ss/es passing for annotation emission
Coupling the logic which interprets input signals at different levels
and the helpers which emit annotations by means of "global" variables
(public members of the decoder object) is unfortunate. It complicates
the logic, adds unnecessary dependencies, and makes maintenance rather
tedious and error prone.
Pass ss/es times to put() routines the same way as annotation classes
and annotation texts are passed. This simplifies the logic where bits
and bytes levels and additional rows are handled. The data values and
their spans all become local information that gets determined in the
same context. Which dramatically simplifies review.
Diffstat (limited to 'decoders/common/srdhelper/__init__.py')
0 files changed, 0 insertions, 0 deletions