From: Frank Stettner Date: Sat, 24 Apr 2021 14:43:23 +0000 (+0200) Subject: Add device type SR_CONF_MULTIPLEXER. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=522381a343f3708e3bb65fd39e35ff0484b64065;p=libsigrok.git Add device type SR_CONF_MULTIPLEXER. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 5d3d23c9..81a831b3 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -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 -------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 349e65e9..2850946f 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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",