summaryrefslogtreecommitdiff
path: root/scripts/transitioncounter.py
diff options
context:
space:
mode:
authorunknown <Uwe@.(none)>2010-04-23 18:46:36 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2010-04-23 19:38:50 +0200
commit6fe63193b0ff900335b791aba8099ab44f7b0c8a (patch)
tree0faeb5a99f37440ab2afe05c6a1c77f140e55ea6 /scripts/transitioncounter.py
parent2b45dd716c3f27a62d163de7ec12f6c225ef4e39 (diff)
downloadlibsigrokdecode-6fe63193b0ff900335b791aba8099ab44f7b0c8a.tar.gz
libsigrokdecode-6fe63193b0ff900335b791aba8099ab44f7b0c8a.zip
transitioncounter: Add register() function.
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