From: Marc Schink Date: Wed, 31 Jan 2024 10:09:54 +0000 (+0100) Subject: Add SR_CONF_DELAY_GENERATOR X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fb6853eb752509ca65ac63c1029434dd4b7cbcdd;p=libsigrok.git Add SR_CONF_DELAY_GENERATOR Signed-off-by: Marc Schink --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index c27bc1dd..58251b3c 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -755,6 +755,11 @@ enum sr_configkey { */ SR_CONF_MULTIPLEXER, + /** + * The device can act as a digital delay generator. + */ + SR_CONF_DELAY_GENERATOR, + /* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /*--- Driver scan options -------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 984ca0d0..7687c5f4 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -64,6 +64,7 @@ static struct sr_key_info sr_key_info_config[] = { {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}, + {SR_CONF_DELAY_GENERATOR, SR_T_STRING, NULL, "Delay generator", NULL}, /* Driver scan options */ {SR_CONF_CONN, SR_T_STRING, "conn",