X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fdcf77%2Fpd.py;h=4c76eeb1444fab2502af5ab79acdb7491cd30857;hp=b708fbc790ea3cf5dcedcb92c3884b6cf0de00c8;hb=9f2f42c064e8a7100cee13460a7a3638f468f56a;hpb=be465111b552c7c2a2262ac49758a30a8bf1b1d5 diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index b708fbc..4c76eeb 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# DCF77 protocol decoder - import sigrokdecode as srd import calendar @@ -42,25 +40,25 @@ class Decoder(srd.Decoder): 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'], + ['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'], + ['leap-second', 'Leap second bit'], + ['start-of-time', 'Start of encoded time'], ['minute', 'Minute'], - ['minute_parity', 'Minute parity bit'], + ['minute-parity', 'Minute parity bit'], ['hour', 'Hour'], - ['hour_parity', 'Hour parity bit'], + ['hour-parity', 'Hour parity bit'], ['day', 'Day of month'], - ['day_of_week', 'Day of week'], + ['day-of-week', 'Day of week'], ['month', 'Month'], ['year', 'Year'], - ['date_parity', 'Date parity bit'], - ['raw_bits', 'Raw bits'], - ['unknown_bits', 'Unknown bits'], + ['date-parity', 'Date parity bit'], + ['raw-bits', 'Raw bits'], + ['unknown-bits', 'Unknown bits'], ['warnings', 'Human-readable warnings'], ] @@ -83,9 +81,6 @@ class Decoder(srd.Decoder): if key == srd.SRD_CONF_SAMPLERATE: self.samplerate = value - def report(self): - pass - def putx(self, data): # Annotation for a single DCF77 bit. self.put(self.ss_bit, self.es_bit, self.out_ann, data)