From: Uwe Hermann Date: Thu, 2 Mar 2017 13:35:17 +0000 (+0100) Subject: Add SR_CONF_SIGNAL_GENERATOR. X-Git-Tag: libsigrok-0.5.0~114 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6928c4a9289368573f44b683a464bf6b8dcc71d7;p=libsigrok.git Add SR_CONF_SIGNAL_GENERATOR. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index e03fedc5..0cbaa004 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 dcf9b1f4..c747c4f4 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",