summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-11-28 20:51:39 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-11-28 20:52:38 +0100
commit201ad73b706f6beaef0d782bbf3c353073442d8d (patch)
tree319acab0ecf137322e3d91d10f25dbbaf21ac9c5
parentdb2d7f3a59f2a32700ae91877fe937b35e32923c (diff)
downloadlibsigrokdecode-201ad73b706f6beaef0d782bbf3c353073442d8d.tar.gz
libsigrokdecode-201ad73b706f6beaef0d782bbf3c353073442d8d.zip
signature: Minor consistency fixes.
-rw-r--r--decoders/signature/pd.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/decoders/signature/pd.py b/decoders/signature/pd.py
index 8b2d128..797a004 100644
--- a/decoders/signature/pd.py
+++ b/decoders/signature/pd.py
@@ -51,20 +51,20 @@ class Decoder(srd.Decoder):
outputs = []
tags = ['Debug/trace', 'Util', 'Encoding']
channels = (
- dict(id='start', name='START', desc='START channel'),
- dict(id='stop', name='STOP', desc='STOP channel'),
- dict(id='clk', name='CLOCK', desc='CLOCK channel'),
- dict(id='data', name='DATA', desc='DATA channel')
+ {'id': 'start', 'name': 'START', 'desc': 'START channel'},
+ {'id': 'stop', 'name': 'STOP', 'desc': 'STOP channel'},
+ {'id': 'clk', 'name': 'CLOCK', 'desc': 'CLOCK channel'},
+ {'id': 'data', 'name': 'DATA', 'desc': 'DATA channel'},
)
options = (
- dict(id='start_edge', desc='Edge-selection for START channel',
- default='r', values=('r', 'f')),
- dict(id='stop_edge', desc='Edge-selection for STOP channel',
- default='r', values=('r', 'f')),
- dict(id='clk_edge', desc='Edge-selection for CLOCK channel',
- default='f', values=('r', 'f')),
- dict(id='annbits', desc='Enable bit level annotation',
- default='no', values=('yes', 'no'))
+ {'id': 'start_edge', 'desc': 'START edge polarity',
+ 'default': 'r', 'values': ('r', 'f')},
+ {'id': 'stop_edge', 'desc': 'STOP edge polarity',
+ 'default': 'r', 'values': ('r', 'f')},
+ {'id': 'clk_edge', 'desc': 'CLOCK edge polarity',
+ 'default': 'f', 'values': ('r', 'f')},
+ {'id': 'annbits', 'desc': 'Enable bit level annotations',
+ 'default': 'no', 'values': ('yes', 'no')},
)
annotations = (
('bit0', 'Bit0'),