]> sigrok.org Git - libsigrok.git/commitdiff
Add config key SR_CONF_RANGE.
authorFrank Stettner <redacted>
Tue, 17 Dec 2019 13:17:55 +0000 (14:17 +0100)
committerFrank Stettner <redacted>
Fri, 20 Dec 2019 12:02:06 +0000 (13:02 +0100)
include/libsigrok/libsigrok.h
src/hwdriver.c

index a367ddeffb938b26c1e767cabe1e7637c6a0aa0f..75f0dce7a194ef65b9c2122095e5bf33b753e001 100644 (file)
@@ -1015,6 +1015,9 @@ enum sr_configkey {
        /** Logic threshold: custom numerical value. */
        SR_CONF_LOGIC_THRESHOLD_CUSTOM,
 
+       /** The measurement range of a DMM or the output range of a power supply. */
+       SR_CONF_RANGE,
+
        /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
        /*--- Special stuff -------------------------------------------------*/
index 38d74964e906d115262c39a181c98bdcb9709147..3d78e769fb2b1067b64ff7b1c20e8c45a8ebac0c 100644 (file)
@@ -195,6 +195,8 @@ static struct sr_key_info sr_key_info_config[] = {
                "Logic threshold (predefined)", NULL},
        {SR_CONF_LOGIC_THRESHOLD_CUSTOM, SR_T_FLOAT, "logic_threshold_custom",
                "Logic threshold (custom)", NULL},
+       {SR_CONF_RANGE, SR_T_STRING, "range",
+               "Range", NULL},
 
        /* Special stuff */
        {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",