From 522381a343f3708e3bb65fd39e35ff0484b64065 Mon Sep 17 00:00:00 2001 From: Frank Stettner Date: Sat, 24 Apr 2021 16:43:23 +0200 Subject: [PATCH] Add device type SR_CONF_MULTIPLEXER. --- include/libsigrok/libsigrok.h | 6 ++++++ src/hwdriver.c | 1 + 2 files changed, 7 insertions(+) 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", -- 2.30.2