]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mx25lxx05d/pd.py
Remove unused probes and options
[libsigrokdecode.git] / decoders / mx25lxx05d / pd.py
index 754729d4f19d1dc8e2440ad8693dc662afd5a163..c7dbd20f5035ddc1141284667448f3b9692b84f7 100644 (file)
@@ -91,17 +91,20 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['spi', 'logic']
     outputs = ['mx25lxx05d']
-    probes = []
     optional_probes = [
         {'id': 'hold', 'name': 'HOLD#', 'desc': 'Pause device w/o deselecting it'},
         {'id': 'wp_acc', 'name': 'WP#/ACC', 'desc': 'Write protect'},
     ]
-    options = {}
     annotations = cmd_annotation_classes() + [
         ['bits', 'Bits'],
         ['bits2', 'Bits2'],
         ['warnings', 'Warnings'],
     ]
+    annotation_rows = (
+        ('bits', 'Bits', (24, 25)),
+        ('commands', 'Commands', tuple(range(23 + 1))),
+        ('warnings', 'Warnings', (26,)),
+    )
 
     def __init__(self, **kwargs):
         self.state = None