Add device type SR_CONF_MULTIPLEXER.

This commit is contained in:
Frank Stettner 2021-04-24 16:43:23 +02:00
parent 004fd9ffd3
commit 522381a343
2 changed files with 7 additions and 0 deletions

View File

@ -723,6 +723,12 @@ enum sr_configkey {
/** The device can measure power. */
SR_CONF_POWERMETER,
/**
* The device can switch between multiple sources, e.g. a relay actuator
* or multiplexer.
*/
SR_CONF_MULTIPLEXER,
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */
/*--- Driver scan options -------------------------------------------*/

View File

@ -63,6 +63,7 @@ static struct sr_key_info sr_key_info_config[] = {
{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},
{SR_CONF_MULTIPLEXER, SR_T_STRING, NULL, "Multiplexer", NULL},
/* Driver scan options */
{SR_CONF_CONN, SR_T_STRING, "conn",