From: Bartosz Golaszewski Date: Fri, 3 Apr 2015 13:04:38 +0000 (+0200) Subject: Device: Add bindings for SR_CONF_POWER_OFF and SR_CONF_PROBE_FACTOR. X-Git-Tag: pulseview-0.3.0~230 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=198f9bc74d6c955a72e3e3282c2b0ba16ef39a62;p=pulseview.git Device: Add bindings for SR_CONF_POWER_OFF and SR_CONF_PROBE_FACTOR. These options are used by baylibre-acme driver and should be available from pulseview configuration pop-up. Signed-off-by: Bartosz Golaszewski --- diff --git a/pv/binding/device.cpp b/pv/binding/device.cpp index 7547a46b..32edea16 100644 --- a/pv/binding/device.cpp +++ b/pv/binding/device.cpp @@ -106,6 +106,7 @@ Device::Device(shared_ptr configurable) : case SR_CONF_EXTERNAL_CLOCK: case SR_CONF_RLE: + case SR_CONF_POWER_OFF: bind_bool(name, get, set); break; @@ -121,6 +122,10 @@ Device::Device(shared_ptr configurable) : bind_enum(name, key, capabilities, get, set, print_voltage_threshold); break; + case SR_CONF_PROBE_FACTOR: + bind_int(name, "", pair(1, 500), get, set); + break; + default: break; }