]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/ds28ea00/pd.py
avr_isp: Add more parts
[libsigrokdecode.git] / decoders / ds28ea00 / pd.py
index 255f7c8fba8c7d5c7669d96b9458510fe442d7fc..39290b45bea235075f34939bada24e6174ac0092 100644 (file)
@@ -35,19 +35,23 @@ command = {
 }
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'ds28ea00'
     name = 'DS28EA00'
     longname = 'Maxim DS28EA00 1-Wire digital thermometer'
     desc = '1-Wire digital thermometer with Sequence Detect and PIO.'
     license = 'gplv2+'
     inputs = ['onewire_network']
-    outputs = ['ds28ea00']
+    outputs = []
+    tags = ['IC', 'Sensor']
     annotations = (
-        ('text', 'Human-readable text'),
+        ('text', 'Text'),
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.trn_beg = 0
         self.trn_end = 0
         self.state = 'ROM'