diff options
author | Bert Vermeulen <bert@biot.com> | 2014-03-10 12:23:38 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2014-03-10 12:23:38 +0100 |
commit | da9bcbd9f45b0153465c55ec726a0d76f6d7f01e (patch) | |
tree | 01190e6a1e52a3aedf5b2578716b8a470cd50fd0 /decoders/ir_rc5/pd.py | |
parent | d1e2129c7b01a760d48bcc8e7fc12956a62698c1 (diff) | |
download | libsigrokdecode-da9bcbd9f45b0153465c55ec726a0d76f6d7f01e.tar.gz libsigrokdecode-da9bcbd9f45b0153465c55ec726a0d76f6d7f01e.zip |
Probes, optional probes and annotations now take a tuple.
Annotation entries also consist of a tuple, not a list.
Diffstat (limited to 'decoders/ir_rc5/pd.py')
-rw-r--r-- | decoders/ir_rc5/pd.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py index a42c86f..dddf937 100644 --- a/decoders/ir_rc5/pd.py +++ b/decoders/ir_rc5/pd.py @@ -30,25 +30,24 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['logic'] outputs = ['ir_rc5'] - probes = [ + probes = ( {'id': 'ir', 'name': 'IR', 'desc': 'IR data line'}, - ] - optional_probes = [] + ) options = ( {'id': 'polarity', 'desc': 'Polarity', 'default': 'active-low', 'values': ('active-low', 'active-high')}, {'id': 'protocol', 'desc': 'Protocol type', 'default': 'standard', 'values': ('standard', 'extended')}, ) - annotations = [ - ['bit', 'Bit'], - ['startbit1', 'Startbit 1'], - ['startbit2', 'Startbit 2'], - ['togglebit-0', 'Toggle bit 0'], - ['togglebit-1', 'Toggle bit 1'], - ['address', 'Address'], - ['command', 'Command'], - ] + annotations = ( + ('bit', 'Bit'), + ('startbit1', 'Startbit 1'), + ('startbit2', 'Startbit 2'), + ('togglebit-0', 'Toggle bit 0'), + ('togglebit-1', 'Toggle bit 1'), + ('address', 'Address'), + ('command', 'Command'), + ) annotation_rows = ( ('bits', 'Bits', (0,)), ('fields', 'Fields', (1, 2, 3, 4, 5, 6)), |