Add SR_CONF key for powering off a device

This commit is contained in:
Bert Vermeulen 2013-06-17 11:54:37 +02:00
parent f157b2eebb
commit 32de50b7f3
2 changed files with 5 additions and 0 deletions

View 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},
};

View 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 ---------------------------------------------*/
/**