From 4ed59136f8033c2cb745302bfd42d359c541e64b Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 6 Feb 2011 17:29:44 +0100 Subject: Python decoders: Add more metadata. Make the list of metadata info match the spec in the wiki more closely. --- decoders/i2c.py | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'decoders/i2c.py') diff --git a/decoders/i2c.py b/decoders/i2c.py index bbf6925..4e11921 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -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. -- cgit v1.2.3-70-g09d2