From 78ec6cf99d14c42ff9f3922715e405414262a2e2 Mon Sep 17 00:00:00 2001 From: Frank Stettner Date: Thu, 21 Feb 2019 16:46:36 +0100 Subject: [PATCH] Add new config key OFFSET. --- include/libsigrok/libsigrok.h | 3 +++ src/hwdriver.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index a8b118c3..508ea3bd 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -995,6 +995,9 @@ enum sr_configkey { */ SR_CONF_EXTERNAL_CLOCK_SOURCE, + /** Offset of a source without strictly-defined MQ. */ + SR_CONF_OFFSET, + /* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /*--- Special stuff -------------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 5f7e2371..a2d53167 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -183,6 +183,8 @@ static struct sr_key_info sr_key_info_config[] = { "Trigger level", NULL}, {SR_CONF_EXTERNAL_CLOCK_SOURCE, SR_T_STRING, "external_clock_source", "External clock source", NULL}, + {SR_CONF_OFFSET, SR_T_FLOAT, "offset", + "Offset", NULL}, /* Special stuff */ {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",