From: Bert Vermeulen Date: Mon, 17 Jun 2013 09:54:37 +0000 (+0200) Subject: Add SR_CONF key for powering off a device X-Git-Tag: libsigrok-0.2.1~50 X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=32de50b7f3f0155589d90b273cac6b0c3dcfeec6 Add SR_CONF key for powering off a device --- diff --git a/hwdriver.c b/hwdriver.c index 91d361f2..0b7be522 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -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}, }; diff --git a/libsigrok.h b/libsigrok.h index 5d3d9345..7019fdb2 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -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 ---------------------------------------------*/ /**