From: Aurelien Jacobs Date: Sun, 15 Mar 2015 22:58:17 +0000 (+0100) Subject: libsigrok.h: Add SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE. X-Git-Tag: libsigrok-0.4.0~498 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=c4b78389227b4d94ed211618f12a25f49d1ba8a3;p=libsigrok.git libsigrok.h: Add SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 43e6de00..4cd68930 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -891,6 +891,9 @@ enum sr_configkey { /* Output frequency target in Hz. */ SR_CONF_OUTPUT_FREQUENCY_TARGET, + /** Over-temperature protection (OTP) active. */ + SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE, + /*--- Special stuff -------------------------------------------------*/ /** Scan options supported by the driver. */ diff --git a/src/hwdriver.c b/src/hwdriver.c index 21cd42e5..26ecbe1a 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -169,6 +169,8 @@ static struct sr_config_info sr_config_info_data[] = { "Measured secondary quantity", NULL}, {SR_CONF_EQUIV_CIRCUIT_MODEL, SR_T_STRING, "equiv_circuit_model", "Equivalent circuit model", NULL}, + {SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE, SR_T_BOOL, "otp_active", + "Over-temperature protection active", NULL}, /* Special stuff */ {SR_CONF_SCAN_OPTIONS, SR_T_STRING, "scan_options",