summaryrefslogtreecommitdiff
path: root/decoders/usb_signalling
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2014-03-10 12:23:38 +0100
committerBert Vermeulen <bert@biot.com>2014-03-10 12:23:38 +0100
commitda9bcbd9f45b0153465c55ec726a0d76f6d7f01e (patch)
tree01190e6a1e52a3aedf5b2578716b8a470cd50fd0 /decoders/usb_signalling
parentd1e2129c7b01a760d48bcc8e7fc12956a62698c1 (diff)
downloadlibsigrokdecode-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/usb_signalling')
-rw-r--r--decoders/usb_signalling/pd.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py
index 823d625..8b98b7e 100644
--- a/decoders/usb_signalling/pd.py
+++ b/decoders/usb_signalling/pd.py
@@ -75,21 +75,21 @@ class Decoder(srd.Decoder):
license = 'gplv2+'
inputs = ['logic']
outputs = ['usb_signalling']
- probes = [
+ probes = (
{'id': 'dp', 'name': 'D+', 'desc': 'USB D+ signal'},
{'id': 'dm', 'name': 'D-', 'desc': 'USB D- signal'},
- ]
+ )
options = (
{'id': 'signalling', 'desc': 'Signalling',
'default': 'full-speed', 'values': ('full-speed', 'low-speed')},
)
- annotations = [
- ['sym', 'Symbol'],
- ['sop', 'Start of packet (SOP)'],
- ['eop', 'End of packet (EOP)'],
- ['bit', 'Bit'],
- ['stuffbit', 'Stuff bit'],
- ]
+ annotations = (
+ ('sym', 'Symbol'),
+ ('sop', 'Start of packet (SOP)'),
+ ('eop', 'End of packet (EOP)'),
+ ('bit', 'Bit'),
+ ('stuffbit', 'Stuff bit'),
+ )
annotation_rows = (
('bits', 'Bits', (1, 2, 3, 4)),
('symbols', 'Symbols', (0,)),