]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/eeprom93xx/pd.py
Add PD tags handling and some tags
[libsigrokdecode.git] / decoders / eeprom93xx / pd.py
index 5ae789f3f5c1fa103046eacfbbb21eb80d78f764..f0eed2ca8a1b984b94bf03c3bf62e83a744d298b 100644 (file)
@@ -20,7 +20,7 @@
 import sigrokdecode as srd
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'eeprom93xx'
     name = '93xx EEPROM'
     longname = '93xx Microwire EEPROM'
@@ -28,6 +28,7 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['microwire']
     outputs = ['eeprom93xx']
+    tags = ['Logic', 'Memory']
     options = (
         {'id': 'addresssize', 'desc': 'Address size', 'default': 8},
         {'id': 'wordsize', 'desc': 'Word size', 'default': 16},
@@ -43,6 +44,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.frame = []
 
     def start(self):