X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fxfp%2Fpd.py;h=b8ec8edb22920cc2fbd012dcf952d7535c137efa;hb=35e92b7bc6f40232144a7e6c9875ef02dbc6faa5;hp=8c258cdf3eb7db159a2f0935089c9a810f09c64c;hpb=9f2f42c064e8a7100cee13460a7a3638f468f56a;p=libsigrokdecode.git diff --git a/decoders/xfp/pd.py b/decoders/xfp/pd.py index 8c258cd..b8ec8ed 100644 --- a/decoders/xfp/pd.py +++ b/decoders/xfp/pd.py @@ -18,7 +18,6 @@ ## import sigrokdecode as srd -import os MODULE_ID = { 0x01: 'GBIC', @@ -192,7 +191,7 @@ AUX_TYPES = [ ] class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'xfp' name = 'XFP' longname = '10 Gigabit Small Form Factor Pluggable Module (XFP)' @@ -200,13 +199,10 @@ class Decoder(srd.Decoder): license = 'gplv3+' inputs = ['i2c'] outputs = ['xfp'] - probes = [] - optional_probes = [] - options = {} - annotations = [ - ['fieldnames-and-values', 'XFP structure field names and values'], - ['fields', 'XFP structure fields'], - ] + annotations = ( + ('fieldnames-and-values', 'XFP structure field names and values'), + ('fields', 'XFP structure fields'), + ) def __init__(self, **kwargs): # Received data items, used as an index into samplenum/data