]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/adf435x/pd.py
decoders: Fix incorrect 'outputs' fields.
[libsigrokdecode.git] / decoders / adf435x / pd.py
index 8f51ee245d43335feca823b9320ba5987ba98aca..f6c6e6e01f99e66f5a5659a16dc1ee873ca60740 100644 (file)
@@ -88,14 +88,15 @@ regs = {
 ANN_REG = 0
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'adf435x'
     name = 'ADF435x'
     longname = 'Analog Devices ADF4350/1'
     desc = 'Wideband synthesizer with integrated VCO.'
     license = 'gplv3+'
     inputs = ['spi']
-    outputs = ['adf435x']
+    outputs = []
+    tags = ['Clock/timing', 'IC', 'Wireless/RF']
     annotations = (
         # Sent from the host to the chip.
         ('register', 'Register written to the device'),
@@ -105,6 +106,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.bits = []
 
     def start(self):