]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2c.py
Python decoders: Add more metadata.
[libsigrokdecode.git] / decoders / i2c.py
index bbf6925078738714f12a15374cb126920f6fb013..4e11921399ff21b06b61283ecdae93f953bc73f4 100644 (file)
@@ -237,13 +237,23 @@ def register():
        return {
                'id': 'i2c',
                'name': 'I2C',
-               'desc': 'Inter-Integrated Circuit (I2C) bus',
-               'inputformats': ['raw'],
-               'signalnames':  {
-                               'SCL': 'Serial clock line',
-                               'SDA': 'Serial data line',
-                               },
-               'outputformats': ['i2c'],
+               'longname': 'Inter-Integrated Circuit (I2C) bus',
+               'desc': 'I2C is a two-wire, multi-master, serial bus.',
+               'longdesc': '...',
+               'author': 'Uwe Hermann',
+               'email': 'uwe@hermann-uwe.de',
+               'license': 'gplv2+',
+               'in': ['logic'],
+               'out': ['i2c'],
+               'probes': [
+                       ['scl', 'Serial clock line'],
+                       ['sda', 'Serial data line'],
+               ],
+               'options': {
+                       'address-space': ['Address space (in bits)', 7],
+               },
+               # 'start': start,
+               # 'report': report,
        }
 
 # Use psyco (if available) as it results in huge performance improvements.