summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-02-06 17:29:44 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2011-02-06 17:29:44 +0100
commit4ed59136f8033c2cb745302bfd42d359c541e64b (patch)
tree92488d4ae7807e7fc237b0360b15410194da8a48
parent959933226cb93b87d3c07c01c8af63840200671e (diff)
downloadlibsigrokdecode-4ed59136f8033c2cb745302bfd42d359c541e64b.tar.gz
libsigrokdecode-4ed59136f8033c2cb745302bfd42d359c541e64b.zip
Python decoders: Add more metadata.
Make the list of metadata info match the spec in the wiki more closely.
-rw-r--r--decoders/i2c.py24
-rw-r--r--decoders/nunchuk.py19
-rw-r--r--decoders/transitioncounter.py20
3 files changed, 49 insertions, 14 deletions
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.
diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py
index 409e120..77b154e 100644
--- a/decoders/nunchuk.py
+++ b/decoders/nunchuk.py
@@ -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.
diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py
index a6d331e..6bd97c2 100644
--- a/decoders/transitioncounter.py
+++ b/decoders/transitioncounter.py
@@ -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.