]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/xfp/pd.py
ir_rc5: Change PD options to be a tuple of dictionaries.
[libsigrokdecode.git] / decoders / xfp / pd.py
index 623052382ee30b80561d05deb721367b080591cf..63e8aec148f9958e7e87f0595fbaec147dd87785 100644 (file)
 ## along with this program; if not, see <http://www.gnu.org/licenses/>.
 ##
 
-# XFP protocol decoder
-
 import sigrokdecode as srd
-import os
 
 MODULE_ID = {
     0x01: 'GBIC',
@@ -202,12 +199,9 @@ class Decoder(srd.Decoder):
     license = 'gplv3+'
     inputs = ['i2c']
     outputs = ['xfp']
-    probes = []
-    optional_probes = []
-    options = {}
     annotations = [
-        ['XFP field names and values', 'XFP structure field names and values'],
-        ['XFP fields', 'XFP structure fields'],
+        ['fieldnames-and-values', 'XFP structure field names and values'],
+        ['fields', 'XFP structure fields'],
     ]
 
     def __init__(self, **kwargs):