]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mx25lxx05d/pd.py
s/out_proto/out_python/.
[libsigrokdecode.git] / decoders / mx25lxx05d / pd.py
index 35809f385d1a36a8270c2278e1cf35125b0d1ff7..faecf594051dc6e3d55837bd706ed2819af33c2f 100644 (file)
 ## 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):
@@ -111,11 +107,8 @@ class Decoder(srd.Decoder):
         self.data = []
 
     def start(self):
-        # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mx25lxx05d')
-        self.out_ann = self.add(srd.OUTPUT_ANN, 'mx25lxx05d')
-
-    def report(self):
-        pass
+        # self.out_python = 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.