]> sigrok.org Git - libsigrok.git/commitdiff
Add new config key OFFSET.
authorFrank Stettner <redacted>
Thu, 21 Feb 2019 15:46:36 +0000 (16:46 +0100)
committerUwe Hermann <redacted>
Fri, 29 Mar 2019 15:15:37 +0000 (16:15 +0100)
include/libsigrok/libsigrok.h
src/hwdriver.c

index a8b118c3809aaf25854981ca830bb02848b57bca..508ea3bd0ed7cd75b8e5d3d16f95479fcf8a8cad 100644 (file)
@@ -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 -------------------------------------------------*/
index 5f7e2371475c634910f81253f998dfddf67bcbcc..a2d5316714c5865f9d034b8c246530e3bc02851c 100644 (file)
@@ -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",