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.
- probes = []
- optional_probes = []
- options = {}
- annotations = []
def __init__(self, **kwargs):
self.packets = [] # Local cache of I²C packets