]> sigrok.org Git - libsigrokdecode.git/commitdiff
transitioncounter: Add register() function.
authorunknown <redacted>
Fri, 23 Apr 2010 16:46:36 +0000 (18:46 +0200)
committerUwe Hermann <redacted>
Fri, 23 Apr 2010 17:38:50 +0000 (19:38 +0200)
scripts/transitioncounter.py

index c16ce46aacc67a90cb5c00bec11a66ba6416dbf5..a9e83f774b18d0d00ce01c460d9829b18e78e7c8 100644 (file)
@@ -77,6 +77,17 @@ def sigrokdecode_count_transitions(inbuf):
 
        return outbuf
 
+def register():
+       return {
+               'id': 'transitioncounter',
+               'name': 'Transition counter',
+               'description': 'TODO',
+               'function': 'sigrokdecode_count_transitions',
+               'inputformats': ['raw'],
+               'signalnames': {}, # FIXME
+               'outputformats': ['transitioncounts'],
+       }
+
 # Use psyco (if available) as it results in huge performance improvements.
 try:
        import psyco