summaryrefslogtreecommitdiff
path: root/decoders/i2c.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/i2c.py')
-rw-r--r--decoders/i2c.py3
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)
+