aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-03-02 14:35:17 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-03-02 15:17:53 +0100
commit6928c4a9289368573f44b683a464bf6b8dcc71d7 (patch)
tree6ce5ad87b9438e633efc1ea00f967b827e14061f
parentd7056eead2f2da08c758ac9c4055e032a4351c2f (diff)
Add SR_CONF_SIGNAL_GENERATOR.
-rw-r--r--include/libsigrok/libsigrok.h3
-rw-r--r--src/hwdriver.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h
index e03fedc..0cbaa00 100644
--- a/include/libsigrok/libsigrok.h
+++ b/include/libsigrok/libsigrok.h
@@ -700,6 +700,9 @@ enum sr_configkey {
/** The device can act as a scale. */
SR_CONF_SCALE,
+ /** The device can act as a function generator. */
+ SR_CONF_SIGNAL_GENERATOR,
+
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */
/*--- Driver scan options -------------------------------------------*/
diff --git a/src/hwdriver.c b/src/hwdriver.c
index dcf9b1f..c747c4f 100644
--- a/src/hwdriver.c
+++ b/src/hwdriver.c
@@ -61,6 +61,7 @@ static struct sr_key_info sr_key_info_config[] = {
{SR_CONF_LCRMETER, SR_T_STRING, NULL, "LCR meter", NULL},
{SR_CONF_ELECTRONIC_LOAD, SR_T_STRING, NULL, "Electronic load", NULL},
{SR_CONF_SCALE, SR_T_STRING, NULL, "Scale", NULL},
+ {SR_CONF_SIGNAL_GENERATOR, SR_T_STRING, NULL, "Signal generator", NULL},
/* Driver scan options */
{SR_CONF_CONN, SR_T_STRING, "conn",