X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Febr30a_i2c_demux%2Febr30a_i2c_demux.py;h=1a52fb8a0344586692cfabd5a0c49ee029ea8fd4;hp=1c704e3f2a5d70f94b73214dfeb0cb6e5bfa86d9;hb=156509ca42f0df2380c9f205f9aad337e1a07802;hpb=a2c2afd9357fab233a4f09531618faa81d54d4d9 diff --git a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py index 1c704e3..1a52fb8 100644 --- a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py +++ b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py @@ -18,19 +18,7 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# # TrekStor EBR30-a I2C demux protocol decoder -# -# Takes an I2C stream as input and outputs 3 different I2C streams, for the -# 3 different I2C devices on the TrekStor EBR30-a eBook reader (which are all -# physically connected to the same SCL/SDA lines). -# -# I2C slave addresses: -# -# - AXP199 battery management chip: 0x69/0x68 (8bit R/W), 0x34 (7bit) -# - H8563S RTC chip: 0xa3/0xa2 (8bit R/W), 0x51 (7bit) -# - Unknown accelerometer chip: 0x2b/0x2a (8bit R/W), 0x15 (7bit) -# import sigrokdecode as srd @@ -48,8 +36,9 @@ class Decoder(srd.Decoder): longdesc = 'TODO.' license = 'gplv2+' inputs = ['i2c'] - outputs = ['i2c-axp199', 'i2c-h8563s', 'i2c-accel'] + outputs = ['i2c-axp199', 'i2c-h8563s', 'i2c-accel'] # TODO: type vs. inst. probes = [] + optional_probes = [] options = {} annotations = [] @@ -102,4 +91,6 @@ class Decoder(srd.Decoder): print('Error: Could not determine correct stream!') # FIXME self.packets = [] self.stream = -1 + else: + pass # Do nothing, only add the I2C packet to our cache.