X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decoders%2Fdcf77%2Fpd.py;h=7cc85f62f8c267c7fb4f70fe54a564122b407eb9;hb=da9bcbd9f45b0153465c55ec726a0d76f6d7f01e;hp=21da4f63ccef4569ff8e6465152e292a6b97b44e;hpb=bb5ebde6dce29b53a814efe3a1b1c350196674d9;p=libsigrokdecode.git diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index 21da4f6..7cc85f6 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -34,33 +34,31 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['logic'] outputs = ['dcf77'] - probes = [ + probes = ( {'id': 'data', 'name': 'DATA', 'desc': 'DATA line'}, - ] - optional_probes = [] - options = {} - 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))),