diff options
author | unknown <Uwe@.(none)> | 2010-04-23 18:46:36 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-04-23 19:38:50 +0200 |
commit | 6fe63193b0ff900335b791aba8099ab44f7b0c8a (patch) | |
tree | 0faeb5a99f37440ab2afe05c6a1c77f140e55ea6 | |
parent | 2b45dd716c3f27a62d163de7ec12f6c225ef4e39 (diff) | |
download | libsigrokdecode-6fe63193b0ff900335b791aba8099ab44f7b0c8a.tar.gz libsigrokdecode-6fe63193b0ff900335b791aba8099ab44f7b0c8a.zip |
transitioncounter: Add register() function.
-rw-r--r-- | scripts/transitioncounter.py | 11 |
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 |