From 201ad73b706f6beaef0d782bbf3c353073442d8d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 28 Nov 2019 20:51:39 +0100 Subject: signature: Minor consistency fixes. --- decoders/signature/pd.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'decoders') 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'), -- cgit v1.2.3-70-g09d2