]> sigrok.org Git - libsigrokdecode.git/commitdiff
Python decoders: Add more metadata.
authorUwe Hermann <redacted>
Sun, 6 Feb 2011 16:29:44 +0000 (17:29 +0100)
committerUwe Hermann <redacted>
Sun, 6 Feb 2011 16:29:44 +0000 (17:29 +0100)
Make the list of metadata info match the spec in the wiki more closely.

decoders/i2c.py
decoders/nunchuk.py
decoders/transitioncounter.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.
index 409e120c458296082d0775bcb97753c72b49f875..77b154eb377cedfb4a55089e1c508d423ea52121 100644 (file)
@@ -143,9 +143,22 @@ def register():
        return {
                'id': 'nunchuk',
                'name': 'Nunchuk',
-               'desc': 'Nintendo Wii Nunchuk decoder',
-               'inputformats': ['i2c'],
-               'ouputformats': ['nunchuk'],
+               'longname': 'Nintendo Wii Nunchuk decoder',
+               'desc': 'Decodes the Nintendo Wii Nunchuk I2C-based protocol.',
+               'longdesc': '...',
+               'author': 'Uwe Hermann',
+               'email': 'uwe@hermann-uwe.de',
+               'license': 'gplv2+',
+               'in': ['i2c'],
+               'out': ['nunchuck'],
+               'probes': [
+                       # TODO
+               ],
+               'options': {
+                       # TODO
+               },
+               # 'start': start,
+               # 'report': report,
        }
 
 # Use psyco (if available) as it results in huge performance improvements.
index a6d331e85fc1af676d87edbebdce96c28d343a0a..6bd97c28a2036a7ac16adf6faee46ced54b24529 100644 (file)
@@ -79,10 +79,22 @@ def register():
        return {
                'id': 'transitioncounter',
                'name': 'Transition counter',
-               'desc': 'Count rising/falling edges',
-               'inputformats': ['raw'],
-               'signalnames': {}, # FIXME
-               'outputformats': ['transitioncounts'],
+               'longname': '...',
+               'desc': 'Counts rising/falling edges in the signal.',
+               'longdesc': '...',
+               'author': 'Uwe Hermann',
+               'email': 'uwe@hermann-uwe.de',
+               'license': 'gplv2+',
+               'in': ['logic'],
+               'out': ['transitioncounts'],
+               'probes': [
+                       # All probes.
+               ],
+               'options': {
+                       # No options so far.
+               },
+               # 'start': start,
+               # 'report': report,
        }
 
 # Use psyco (if available) as it results in huge performance improvements.