From: Uwe Hermann Date: Tue, 9 Feb 2016 00:28:38 +0000 (+0100) Subject: Add SR_CONF_UNDER_VOLTAGE_CONDITION* config keys. X-Git-Tag: libsigrok-0.5.0~561 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2fe1011f1daf66279424bd20722c2c80e0b593a9;p=libsigrok.git Add SR_CONF_UNDER_VOLTAGE_CONDITION* config keys. Add two new config keys: - SR_CONF_UNDER_VOLTAGE_CONDITION - SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index a384f611..3daf616d 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -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 -------------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 5790e320..81a86a79 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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",