These options are used by baylibre-acme driver and should be available
from pulseview configuration pop-up.

Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
NOTE: As I said on IRC: I know this is not the right way to do it - options
should be enumerated automatically - but we would like to make these settings
available to people using ACME. I hope to find some time to implement automatic
enumeration in the following weeks though.

 pv/binding/device.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pv/binding/device.cpp b/pv/binding/device.cpp
index 7547a46..32edea1 100644
--- a/pv/binding/device.cpp
+++ b/pv/binding/device.cpp
@@ -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;
                }
-- 
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

Reply via email to