X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmx25lxx05d%2Fpd.py;h=d6c84e8cd95b70e9faf2b866628a9d488ee8697f;hp=182ae26fc63d8aec19f456430ca9ebbe86df41b6;hb=ef36224880135a05d2fbde8f048ea3fe3f425df9;hpb=24c74fd30fb161837c5f8b01baf3c0fe2dfa4ed5 diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index 182ae26..d6c84e8 100644 --- a/decoders/mx25lxx05d/pd.py +++ b/decoders/mx25lxx05d/pd.py @@ -1,5 +1,5 @@ ## -## This file is part of the sigrok project. +## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2011-2012 Uwe Hermann ## @@ -18,10 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Macronix MX25Lxx05D SPI (NOR) flash chip protocol decoder - -# Note: Works for MX25L1605D/MX25L3205D/MX25L6405D. - import sigrokdecode as srd # Dict which maps command IDs to their names and descriptions. @@ -110,12 +106,9 @@ class Decoder(srd.Decoder): self.addr = 0 self.data = [] - def start(self, metadata): - # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mx25lxx05d') - self.out_ann = self.add(srd.OUTPUT_ANN, 'mx25lxx05d') - - def report(self): - pass + def start(self): + # self.out_proto = self.register(srd.OUTPUT_PYTHON) + self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data): # Simplification, most annotations span exactly one SPI byte/packet.