]> sigrok.org Git - pulseview.git/commitdiff
Add bindings for new device options
authorDaniel Elstner <redacted>
Wed, 5 Feb 2014 21:35:37 +0000 (22:35 +0100)
committerJoel Holdsworth <redacted>
Sat, 8 Feb 2014 08:13:02 +0000 (08:13 +0000)
Add device option bindings for the SR_CONF_TRIGGER_SLOPE,
SR_CONF_EXTERNAL_CLOCK and SR_CONF_CLOCK_EDGE settings.  For
now, the slope and edge settings use the generic combo box
widget.

pv/prop/binding/deviceoptions.cpp

index a5b9dd2365d9e6a4c058979f9a94e3af8f74c50e..d116521aa435524f5ac8871fb8b06a625e57905f 100644 (file)
@@ -91,11 +91,14 @@ DeviceOptions::DeviceOptions(const sr_dev_inst *sdi,
                case SR_CONF_PATTERN_MODE:
                case SR_CONF_BUFFERSIZE:
                case SR_CONF_TRIGGER_SOURCE:
+               case SR_CONF_TRIGGER_SLOPE:
                case SR_CONF_FILTER:
                case SR_CONF_COUPLING:
+               case SR_CONF_CLOCK_EDGE:
                        bind_enum(name, key, gvar_list);
                        break;
 
+               case SR_CONF_EXTERNAL_CLOCK:
                case SR_CONF_RLE:
                        bind_bool(name, key);
                        break;