]> sigrok.org Git - pulseview.git/commitdiff
Device: Add bindings for SR_CONF_POWER_OFF and SR_CONF_PROBE_FACTOR.
authorBartosz Golaszewski <redacted>
Fri, 3 Apr 2015 13:04:38 +0000 (15:04 +0200)
committerUwe Hermann <redacted>
Sun, 12 Apr 2015 15:18:46 +0000 (17:18 +0200)
These options are used by baylibre-acme driver and should be available
from pulseview configuration pop-up.

Signed-off-by: Bartosz Golaszewski <redacted>
pv/binding/device.cpp

index 7547a46b341b33d3f472c2fce56812fa491fbe9c..32edea164144786d0ef9ad8aeab525dc99363eb8 100644 (file)
@@ -106,6 +106,7 @@ Device::Device(shared_ptr<sigrok::Configurable> 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<sigrok::Configurable> configurable) :
                        bind_enum(name, key, capabilities, get, set, print_voltage_threshold);
                        break;
 
+               case SR_CONF_PROBE_FACTOR:
+                       bind_int(name, "", pair<int64_t, int64_t>(1, 500), get, set);
+                       break;
+
                default:
                        break;
                }