]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_CONF_UNDER_VOLTAGE_CONDITION* config keys.
authorUwe Hermann <redacted>
Tue, 9 Feb 2016 00:28:38 +0000 (01:28 +0100)
committerUwe Hermann <redacted>
Thu, 11 Feb 2016 13:42:50 +0000 (14:42 +0100)
Add two new config keys:

 - SR_CONF_UNDER_VOLTAGE_CONDITION

 - SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE

include/libsigrok/libsigrok.h
src/hwdriver.c

index a384f611d53cf687a1c52cac90b44d13df1dcf44..3daf616d80e471d8253f0b810c09e586bdab9042 100644 (file)
@@ -976,6 +976,12 @@ enum sr_configkey {
        /** Over-temperature protection (OTP) active. */
        SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE,
 
+       /** Under-voltage condition. */
+       SR_CONF_UNDER_VOLTAGE_CONDITION,
+
+       /** Under-voltage condition active. */
+       SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE,
+
        /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
        /*--- Special stuff -------------------------------------------------*/
index 5790e320564fc5d8017d17f601f1be6581b4ea56..81a86a7998a5de184f5411a37b42d7c8b8793846 100644 (file)
@@ -171,6 +171,10 @@ static struct sr_key_info sr_key_info_config[] = {
                "Equivalent circuit model", NULL},
        {SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE, SR_T_BOOL, "otp_active",
                "Over-temperature protection active", NULL},
+       {SR_CONF_UNDER_VOLTAGE_CONDITION, SR_T_BOOL, "uvc",
+               "Under-voltage condition", NULL},
+       {SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE, SR_T_BOOL, "uvc_active",
+               "Under-voltage condition active", NULL},
 
        /* Special stuff */
        {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",