]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/atsha204a/pd.py
decoders: Various cosmetic/consistency/typo fixes.
[libsigrokdecode.git] / decoders / atsha204a / pd.py
index 70b7b39b01a7e2bbbf124803d4269aff41c78e25..3f579b134ffdce0b2d8ef5cac3bc60818b400025 100644 (file)
@@ -85,10 +85,11 @@ class Decoder(srd.Decoder):
     id = 'atsha204a'
     name = 'ATSHA204A'
     longname = 'Microchip ATSHA204A'
-    desc = 'Microchip ATSHA204A CryptoAuthentication device'
+    desc = 'Microchip ATSHA204A crypto authentication protocol.'
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = ['atsha204a']
+    tags = ['Security/crypto', 'IC', 'Memory']
     annotations = (
         ('waddr', 'Word address'),
         ('count', 'Count'),
@@ -107,6 +108,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.state = 'IDLE'
         self.waddr = self.opcode = -1
         self.ss_block = self.es_block = 0