From: Uwe Hermann Date: Fri, 31 Jan 2014 13:56:17 +0000 (+0100) Subject: dcf77: Define annotation rows. X-Git-Tag: libsigrokdecode-0.3.0~133 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9f6df6fe1aa837d0506b1b9bef6ee75c951a8da2;p=libsigrokdecode.git dcf77: Define annotation rows. --- diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index e8d1443..c6cf6e5 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -1,7 +1,7 @@ ## ## This file is part of the libsigrokdecode project. ## -## Copyright (C) 2012-2013 Uwe Hermann +## Copyright (C) 2012-2014 Uwe Hermann ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -61,6 +61,11 @@ class Decoder(srd.Decoder): ['unknown-bits', 'Unknown bits'], ['warnings', 'Human-readable warnings'], ] + annotation_rows = ( + ('bits', 'Bits', (17, 18)), + ('fields', 'Fields', tuple(range(0, 16 + 1))), + ('warnings', 'Warnings', (19,)), + ) def __init__(self, **kwargs): self.samplerate = None