]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_CONF_EXTERNAL_CLOCK_SOURCE key.
authorAndrej Valek <redacted>
Mon, 28 May 2018 17:51:29 +0000 (19:51 +0200)
committerUwe Hermann <redacted>
Tue, 5 Jun 2018 20:01:12 +0000 (22:01 +0200)
Signed-off-by: Andrej Valek <redacted>
include/libsigrok/libsigrok.h
src/hwdriver.c

index e88360b68a9c6243531b5479a298b39efc9dd475..a8b118c3809aaf25854981ca830bb02848b57bca 100644 (file)
@@ -989,6 +989,12 @@ enum sr_configkey {
        /** Under-voltage condition threshold. */
        SR_CONF_UNDER_VOLTAGE_CONDITION_THRESHOLD,
 
+       /**
+        * Which external clock source to use if the device supports
+        * multiple external clock channels.
+        */
+       SR_CONF_EXTERNAL_CLOCK_SOURCE,
+
        /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
        /*--- Special stuff -------------------------------------------------*/
index 3613062514b747bf65dd2c97af5d1aac47eb35c6..5f7e2371475c634910f81253f998dfddf67bcbcc 100644 (file)
@@ -181,6 +181,8 @@ static struct sr_key_info sr_key_info_config[] = {
                "Under-voltage condition threshold", NULL},
        {SR_CONF_TRIGGER_LEVEL, SR_T_FLOAT, "triggerlevel",
                "Trigger level", NULL},
+       {SR_CONF_EXTERNAL_CLOCK_SOURCE, SR_T_STRING, "external_clock_source",
+               "External clock source", NULL},
 
        /* Special stuff */
        {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",