summaryrefslogtreecommitdiff
path: root/decoders/dcf77
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/dcf77
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/dcf77')
-rw-r--r--decoders/dcf77/pd.py48
1 files changed, 24 insertions, 24 deletions
diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py
index 94f5d2c..7cc85f6 100644
--- a/decoders/dcf77/pd.py
+++ b/decoders/dcf77/pd.py
@@ -34,31 +34,31 @@ class Decoder(srd.Decoder):
license = 'gplv2+'
inputs = ['logic']
outputs = ['dcf77']
- probes = [
+ probes = (
{'id': 'data', 'name': 'DATA', 'desc': 'DATA line'},
- ]
- annotations = [
- ['start-of-minute', 'Start of minute'],
- ['special-bits', 'Special bits (civil warnings, weather forecast)'],
- ['call-bit', 'Call bit'],
- ['summer-time', 'Summer time announcement'],
- ['cest', 'CEST bit'],
- ['cet', 'CET bit'],
- ['leap-second', 'Leap second bit'],
- ['start-of-time', 'Start of encoded time'],
- ['minute', 'Minute'],
- ['minute-parity', 'Minute parity bit'],
- ['hour', 'Hour'],
- ['hour-parity', 'Hour parity bit'],
- ['day', 'Day of month'],
- ['day-of-week', 'Day of week'],
- ['month', 'Month'],
- ['year', 'Year'],
- ['date-parity', 'Date parity bit'],
- ['raw-bits', 'Raw bits'],
- ['unknown-bits', 'Unknown bits'],
- ['warnings', 'Human-readable warnings'],
- ]
+ )
+ annotations = (
+ ('start-of-minute', 'Start of minute'),
+ ('special-bits', 'Special bits (civil warnings, weather forecast)'),
+ ('call-bit', 'Call bit'),
+ ('summer-time', 'Summer time announcement'),
+ ('cest', 'CEST bit'),
+ ('cet', 'CET bit'),
+ ('leap-second', 'Leap second bit'),
+ ('start-of-time', 'Start of encoded time'),
+ ('minute', 'Minute'),
+ ('minute-parity', 'Minute parity bit'),
+ ('hour', 'Hour'),
+ ('hour-parity', 'Hour parity bit'),
+ ('day', 'Day of month'),
+ ('day-of-week', 'Day of week'),
+ ('month', 'Month'),
+ ('year', 'Year'),
+ ('date-parity', 'Date parity bit'),
+ ('raw-bits', 'Raw bits'),
+ ('unknown-bits', 'Unknown bits'),
+ ('warnings', 'Human-readable warnings'),
+ )
annotation_rows = (
('bits', 'Bits', (17, 18)),
('fields', 'Fields', tuple(range(0, 16 + 1))),