summaryrefslogtreecommitdiff
path: root/decoders/st25r39xx_spi/lists.py
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-08-29 12:31:31 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-08-30 07:23:58 +0200
commit1dfaf1e8a7df8e4cc251aeea4afb35cfa3fa219c (patch)
treec1dac13f50d5ee8b00ff2a69b4dace63f826e5f6 /decoders/st25r39xx_spi/lists.py
parente4f70391abbb153364a534d45a59026961ce1b1f (diff)
downloadlibsigrokdecode-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/st25r39xx_spi/lists.py')
0 files changed, 0 insertions, 0 deletions