X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decoders%2Fmx25lxx05d%2Fpd.py;h=fe1ca623e1d73048e9c41f7ad61f40661993fae2;hb=e0a0123d2f7f1039fe52f24591dff262b4f8935c;hp=68335d4d0bd3ab90ee2736126f53b9d88f16aad4;hpb=be465111b552c7c2a2262ac49758a30a8bf1b1d5;p=libsigrokdecode.git diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index 68335d4..fe1ca62 100644 --- a/decoders/mx25lxx05d/pd.py +++ b/decoders/mx25lxx05d/pd.py @@ -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. @@ -99,9 +95,9 @@ class Decoder(srd.Decoder): ] options = {} annotations = [ - ['Text', 'Human-readable text'], - ['Verbose decode', 'Decoded register bits, read/write data'], - ['Warnings', 'Human-readable warnings'], + ['text', 'Human-readable text'], + ['verbose-decode', 'Decoded register bits, read/write data'], + ['warnings', 'Human-readable warnings'], ] def __init__(self, **kwargs): @@ -114,9 +110,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): # Simplification, most annotations span exactly one SPI byte/packet. self.put(self.ss, self.es, self.out_ann, data)