Browse Source

Add device type SR_CONF_MULTIPLEXER.

master
Frank Stettner 6 months ago
parent
commit
522381a343
  1. 6
      include/libsigrok/libsigrok.h
  2. 1
      src/hwdriver.c

6
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 -------------------------------------------*/

1
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",

Loading…
Cancel
Save