From: Uwe Hermann Date: Wed, 19 Jul 2017 06:31:16 +0000 (+0200) Subject: Add SR_CONF_POWERMETER. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=31bdc10ec2cbcdee6b63df075305b44f0b270b8f;p=libsigrok.git Add SR_CONF_POWERMETER. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index f0ad4d04..6a79acb5 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -703,6 +703,9 @@ enum sr_configkey { /** The device can act as a function generator. */ SR_CONF_SIGNAL_GENERATOR, + /** The device can measure power. */ + SR_CONF_POWERMETER, + /* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /*--- Driver scan options -------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 96b6cfac..5378d74a 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -62,6 +62,7 @@ static struct sr_key_info sr_key_info_config[] = { {SR_CONF_ELECTRONIC_LOAD, SR_T_STRING, NULL, "Electronic load", NULL}, {SR_CONF_SCALE, SR_T_STRING, NULL, "Scale", NULL}, {SR_CONF_SIGNAL_GENERATOR, SR_T_STRING, NULL, "Signal generator", NULL}, + {SR_CONF_POWERMETER, SR_T_STRING, NULL, "Power meter", NULL}, /* Driver scan options */ {SR_CONF_CONN, SR_T_STRING, "conn",