X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fi2cfilter%2Fi2cfilter.py;h=64010cb2a3f0404aba7e79031fa3b058f614144c;hb=781ef9450d82a9c7381aef17fb4974a1e49ec2d2;hp=afbee650717814d907da52221478d03ee7f50545;hpb=09059016e02db5d83b4862a3adcf8ddf101f6991;p=libsigrokdecode.git diff --git a/decoders/i2cfilter/i2cfilter.py b/decoders/i2cfilter/i2cfilter.py index afbee65..64010cb 100644 --- a/decoders/i2cfilter/i2cfilter.py +++ b/decoders/i2cfilter/i2cfilter.py @@ -26,14 +26,17 @@ class Decoder(srd.Decoder): id = 'i2cfilter' name = 'I2C filter' longname = 'I2C filter' - desc = 'Filter out specific addresses/directions in an I2C stream.' + desc = 'Filter out addresses/directions in an I2C stream.' license = 'gplv3+' inputs = ['i2c'] outputs = [] + probes = [] + optional_probes = [] options = { 'address': ['Address to filter out of the I2C stream', 0], 'direction': ['Direction to filter (read/write)', ''] } + annotations = [] def __init__(self, **kwargs): self.state = None @@ -43,6 +46,9 @@ class Decoder(srd.Decoder): if self.options['direction'] not in ('', 'read', 'write'): raise Exception('Invalid direction: expected "read" or "write"') + def report(self): + pass + def decode(self, ss, es, data): try: cmd, data = data