From: Frank Stettner Date: Thu, 21 Feb 2019 15:46:36 +0000 (+0100) Subject: Add new config key OFFSET. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=78ec6cf99d14c42ff9f3922715e405414262a2e2;p=libsigrok.git Add new config key OFFSET. --- 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",