diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-31 14:56:17 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-31 18:27:41 +0100 |
commit | 9f6df6fe1aa837d0506b1b9bef6ee75c951a8da2 (patch) | |
tree | 9d2788676f8798f19da31459a9bd10be3317022d /decoders/dcf77 | |
parent | 06b52ebb5fe7c09890dee02aa653578c2faf5a65 (diff) | |
download | libsigrokdecode-9f6df6fe1aa837d0506b1b9bef6ee75c951a8da2.tar.gz libsigrokdecode-9f6df6fe1aa837d0506b1b9bef6ee75c951a8da2.zip |
dcf77: Define annotation rows.
Diffstat (limited to 'decoders/dcf77')
-rw-r--r-- | decoders/dcf77/pd.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 <uwe@hermann-uwe.de> +## Copyright (C) 2012-2014 Uwe Hermann <uwe@hermann-uwe.de> ## ## 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 |