]> sigrok.org Git - libsigrok.git/commitdiff
SR_CONF_PROBE_FACTOR: New option.
authorBartosz Golaszewski <redacted>
Thu, 12 Feb 2015 13:53:52 +0000 (14:53 +0100)
committerUwe Hermann <redacted>
Mon, 16 Feb 2015 00:20:07 +0000 (01:20 +0100)
Add new configuration option allowing to modify the probe factor
for oscilloscopes and power-monitors.

Signed-off-by: Bartosz Golaszewski <redacted>
include/libsigrok/libsigrok.h
src/hwdriver.c

index 353860d9e529871e62b712fefebc47205fb7ac14..e0540a45db981844197a981739f84a3af2f4bf40 100644 (file)
@@ -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 ----------------------------*/
 
        /**
index 239592d3ebc9157e35148d5d1d73091540e8c332..170922069edc95b19e6527110b61af3e194e8bdc 100644 (file)
@@ -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",