Add SR_CONF_POWERMETER.

This commit is contained in:
Uwe Hermann 2017-07-19 08:31:16 +02:00
parent b258c09f26
commit 31bdc10ec2
2 changed files with 4 additions and 0 deletions

View File

@ -703,6 +703,9 @@ enum sr_configkey {
/** The device can act as a function generator. */ /** The device can act as a function generator. */
SR_CONF_SIGNAL_GENERATOR, SR_CONF_SIGNAL_GENERATOR,
/** The device can measure power. */
SR_CONF_POWERMETER,
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
/*--- Driver scan options -------------------------------------------*/ /*--- Driver scan options -------------------------------------------*/

View File

@ -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_ELECTRONIC_LOAD, SR_T_STRING, NULL, "Electronic load", NULL},
{SR_CONF_SCALE, SR_T_STRING, NULL, "Scale", NULL}, {SR_CONF_SCALE, SR_T_STRING, NULL, "Scale", NULL},
{SR_CONF_SIGNAL_GENERATOR, SR_T_STRING, NULL, "Signal generator", 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 */ /* Driver scan options */
{SR_CONF_CONN, SR_T_STRING, "conn", {SR_CONF_CONN, SR_T_STRING, "conn",