X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmaxim_ds28ea00%2Fpd.py;h=6e1125a73c6e4d84f545466bee066a8cfc3dbd9d;hp=10b198f18ccc7ae8931a6f2a1becc29645244d19;hb=9f2f42c064e8a7100cee13460a7a3638f468f56a;hpb=9e1437a045ef0c7df7e847be148fac6b4c0bbb4b diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index 10b198f..6e1125a 100644 --- a/decoders/maxim_ds28ea00/pd.py +++ b/decoders/maxim_ds28ea00/pd.py @@ -1,5 +1,5 @@ ## -## This file is part of the sigrok project. +## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Iztok Jeras ## @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Maxim DS28EA00 protocol decoder - import sigrokdecode as srd # Dictionary of FUNCTION commands and their names. @@ -55,7 +53,7 @@ class Decoder(srd.Decoder): ] options = {} annotations = [ - ['Text', 'Human-readable text'], + ['text', 'Human-readable text'], ] def __init__(self, **kwargs): @@ -64,11 +62,8 @@ class Decoder(srd.Decoder): self.state = 'ROM' self.rom = 0x0000000000000000 - def start(self, metadata): - self.out_ann = self.add(srd.OUTPUT_ANN, 'maxim_ds28ea00') - - def report(self): - pass + def start(self): + self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data): self.put(self.ss, self.es, self.out_ann, data)