Add new configuration option allowing to modify the probe factor for oscilloscopes and power-monitors.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- include/libsigrok/libsigrok.h | 3 +++ src/hwdriver.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 353860d..e0540a4 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -906,6 +906,9 @@ enum sr_configkey { */ SR_CONF_DATA_SOURCE, + /** The device supports setting a probe factor. */ + SR_CONF_PROBE_FACTOR, + /*--- Acquisition modes, sample limiting ----------------------------*/ /** diff --git a/src/hwdriver.c b/src/hwdriver.c index 239592d..1709220 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -183,6 +183,8 @@ static struct sr_config_info sr_config_info_data[] = { "Power off", NULL}, {SR_CONF_DATA_SOURCE, SR_T_STRING, "data_source", "Data source", NULL}, + {SR_CONF_PROBE_FACTOR, SR_T_UINT64, "probe_factor", + "Probe factor", NULL}, /* Acquisition modes, sample limiting */ {SR_CONF_LIMIT_MSEC, SR_T_UINT64, "limit_time", -- 2.1.4 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel