X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fi2cfilter%2Fpd.py;h=895cc179045333d83280a7031edf40933612bfb4;hb=21b39043472eeeb2e0155eafc73247f5010af714;hp=91269c0862b186b7dc07c6960a328d84b355aab1;hpb=84c1c0b52820af2418186ac3ecf93a5c6373a22e;p=libsigrokdecode.git diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py index 91269c0..895cc17 100644 --- a/decoders/i2cfilter/pd.py +++ b/decoders/i2cfilter/pd.py @@ -23,7 +23,7 @@ import sigrokdecode as srd class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'i2cfilter' name = 'I²C filter' longname = 'I²C filter' @@ -31,18 +31,14 @@ class Decoder(srd.Decoder): license = 'gplv3+' inputs = ['i2c'] outputs = ['i2c'] - probes = [] - optional_probes = [] options = ( {'id': 'address', 'desc': 'Address to filter out of the I²C stream', 'default': 0}, {'id': 'direction', 'desc': 'Direction to filter', 'default': 'both', 'values': ('read', 'write', 'both')} ) - annotations = [] def __init__(self, **kwargs): - self.state = None self.curslave = -1 self.curdirection = None self.packets = [] # Local cache of I²C packets