]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_CONF key for powering off a device
authorBert Vermeulen <redacted>
Mon, 17 Jun 2013 09:54:37 +0000 (11:54 +0200)
committerBert Vermeulen <redacted>
Mon, 17 Jun 2013 14:17:39 +0000 (16:17 +0200)
hwdriver.c
libsigrok.h

index 91d361f24aa3b663f2f1279bb52b8865be1396b9..0b7be5225a219b2ec597c9b8e69cf69335ad1305 100644 (file)
@@ -93,6 +93,8 @@ static struct sr_config_info sr_config_info_data[] = {
                "Hold min", NULL},
        {SR_CONF_SPL_MEASUREMENT_RANGE, SR_T_UINT64_RANGE, "spl_meas_range",
                "Sound pressure level measurement range", NULL},
+       {SR_CONF_POWER_OFF, SR_T_BOOL, "power_off",
+               "Power off", NULL},
        {0, 0, NULL, NULL, NULL},
 };
 
index 5d3d93457901d3eed256576767a0bf31010083a2..7019fdb21e7685292cc3136a7db7f3c5c165e837 100644 (file)
@@ -701,6 +701,9 @@ enum {
        /** The device supports setting the number of probes. */
        SR_CONF_CAPTURE_NUM_PROBES,
 
+       /** Power off the device. */
+       SR_CONF_POWER_OFF,
+
        /*--- Acquisition modes ---------------------------------------------*/
 
        /**