From: Bartosz Golaszewski Date: Thu, 12 Feb 2015 13:53:52 +0000 (+0100) Subject: SR_CONF_PROBE_FACTOR: New option. X-Git-Tag: libsigrok-0.4.0~633 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d3c81725aeff955b45da41d6f4810569d660e40d;p=libsigrok.git SR_CONF_PROBE_FACTOR: New option. Add new configuration option allowing to modify the probe factor for oscilloscopes and power-monitors. Signed-off-by: Bartosz Golaszewski --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 353860d9..e0540a45 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 239592d3..17092206 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",