import sigrokdecode as srd
class Decoder(srd.Decoder):
- api_version = 1
+ api_version = 2
id = 'i2cdemux'
name = 'I²C demux'
longname = 'I²C demultiplexer'
license = 'gplv2+'
inputs = ['i2c']
outputs = [] # TODO: Only known at run-time.
- annotations = []
- def __init__(self, **kwargs):
+ def __init__(self):
self.packets = [] # Local cache of I²C packets
self.slaves = [] # List of known slave addresses
self.stream = -1 # Current output stream
self.stream = -1
else:
pass # Do nothing, only add the I²C packet to our cache.
-