diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-08-29 10:05:24 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-08-30 07:23:58 +0200 |
commit | ead003186fc788e9f330264c85668e2690896bce (patch) | |
tree | 567d77767378bedd958c3b4ebfbdbb5c75e00892 | |
parent | 7e87b2f7522312d5dda5231c1de75fb6bbbdf60c (diff) | |
download | libsigrokdecode-ead003186fc788e9f330264c85668e2690896bce.tar.gz libsigrokdecode-ead003186fc788e9f330264c85668e2690896bce.zip |
sle44xx: fixup boilerplate, add missing required fields
The decoder was created in an older setup and would not load in recent
applications. Add missing boilerplate which is mandatory. Rename 'data'
since annotation classes and rows must not have ambiguous names, and
there is no singular form of 'data' -- use 'fields' instead. This also
fixes a missing line termination at the end of the text file.
-rw-r--r-- | decoders/sle44xx/pd.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/decoders/sle44xx/pd.py b/decoders/sle44xx/pd.py index 62bcdcf..e897b13 100644 --- a/decoders/sle44xx/pd.py +++ b/decoders/sle44xx/pd.py @@ -52,6 +52,7 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['logic'] outputs = ['sle44xx'] + tags = ['Memory'] channels = ( {'id': 'rst', 'name': 'RST', 'desc': 'Reset line'}, {'id': 'clk', 'name': 'CLK', 'desc': 'Clock line'}, @@ -66,7 +67,7 @@ class Decoder(srd.Decoder): ) annotation_rows = ( ('bits', 'Bits', (4,)), - ('data', 'Data', (1, 2, 3)), + ('fields', 'Fields', (1, 2, 3)), ('interrupts', 'Interrupts', (0,)), ) binary = ( @@ -168,4 +169,4 @@ class Decoder(srd.Decoder): elif self.matched[2]: # Command mode START: CLK = high, I/O = falling. self.handle_command(pins) elif self.matched[3]: # Command mode STOP: CLK = high, I/O = rising. - self.handle_command(pins)
\ No newline at end of file + self.handle_command(pins) |