diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 8292483a..03eedc61 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -756,6 +756,9 @@ enum sr_configkey { /** Choice of clock edge for external clock ("r" or "f"). */ SR_CONF_CLOCK_EDGE, + /** Amplitude of a source without strictly-defined MQ. */ + SR_CONF_AMPLITUDE, + /*--- Special stuff -------------------------------------------------*/ /** Scan options supported by the driver. */ diff --git a/src/hwdriver.c b/src/hwdriver.c index 04d877ae..914fc337 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -124,6 +124,8 @@ static struct sr_config_info sr_config_info_data[] = { "Sample limit", NULL}, {SR_CONF_CLOCK_EDGE, SR_T_STRING, "clock_edge", "Clock edge", NULL}, + {SR_CONF_AMPLITUDE, SR_T_FLOAT, "amplitude", + "Amplitude", NULL}, {0, 0, NULL, NULL, NULL}, };