summaryrefslogtreecommitdiff
path: root/scripts/transitioncounter.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/transitioncounter.py')
-rw-r--r--scripts/transitioncounter.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/transitioncounter.py b/scripts/transitioncounter.py
index c16ce46..a9e83f7 100644
--- a/scripts/transitioncounter.py
+++ b/scripts/transitioncounter.py
@@ -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