diff options
author | Gareth McMullin <gareth@blacksphere.co.nz> | 2011-12-01 23:09:40 +1300 |
---|---|---|
committer | Gareth McMullin <gareth@blacksphere.co.nz> | 2011-12-01 23:10:28 +1300 |
commit | 67e847fd2185aa5677954dceacf3c279d7a68af1 (patch) | |
tree | 81d6fc2e649e9414cc618ab615f88b8c6b4ef583 /decoders/i2c.py | |
parent | 400f9ae7ff16bb611d758d75ff4931b667561b11 (diff) | |
download | libsigrokdecode-67e847fd2185aa5677954dceacf3c279d7a68af1.tar.gz libsigrokdecode-67e847fd2185aa5677954dceacf3c279d7a68af1.zip |
srd: PDs now explicitly register with sigrok module.
Diffstat (limited to 'decoders/i2c.py')
-rw-r--r-- | decoders/i2c.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/i2c.py b/decoders/i2c.py index 93cf167..16e7491 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -143,6 +143,7 @@ def sampleiter(data, unitsize): yield(Sample(data[i:i+unitsize])) class Decoder(): + id = 'i2c' name = 'I2C' longname = 'Inter-Integrated Circuit (I2C) bus' desc = 'I2C is a two-wire, multi-master, serial bus.' @@ -351,3 +352,5 @@ class Decoder(): import sigrok +sigrok.register(Decoder) + |