summaryrefslogtreecommitdiff
path: root/module_sigrokdecode.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-06-26 21:25:37 +0200
committerSoeren Apel <soeren@apelpie.net>2021-02-13 22:40:15 +0100
commitddcde1861eb029e17d2592b2fbf644e2e00f4835 (patch)
treea6eda6762fb37198151b8689319670d0379fcb80 /module_sigrokdecode.c
parent88b62601d661281be74fde8e3913e66dbe2fa7b4 (diff)
downloadlibsigrokdecode-ddcde1861eb029e17d2592b2fbf644e2e00f4835.tar.gz
libsigrokdecode-ddcde1861eb029e17d2592b2fbf644e2e00f4835.zip
Add initial OUTPUT_LOGIC support.
Protocol decoders can now declare an arbitrary number of logic output channels with a fixed assumed samplerate each.
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r--module_sigrokdecode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c
index 39b5b43..1fc0c77 100644
--- a/module_sigrokdecode.c
+++ b/module_sigrokdecode.c
@@ -63,6 +63,8 @@ PyMODINIT_FUNC PyInit_sigrokdecode(void)
goto err_out;
if (PyModule_AddIntConstant(mod, "OUTPUT_BINARY", SRD_OUTPUT_BINARY) < 0)
goto err_out;
+ if (PyModule_AddIntConstant(mod, "OUTPUT_LOGIC", SRD_OUTPUT_LOGIC) < 0)
+ goto err_out;
if (PyModule_AddIntConstant(mod, "OUTPUT_META", SRD_OUTPUT_META) < 0)
goto err_out;
/* Expose meta input symbols. */