From: unknown Date: Fri, 23 Apr 2010 16:46:36 +0000 (+0200) Subject: transitioncounter: Add register() function. X-Git-Tag: libsigrokdecode-0.1.0~334 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6fe63193b0ff900335b791aba8099ab44f7b0c8a;p=libsigrokdecode.git transitioncounter: Add register() function. --- 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