Add SR_CONF key for sound pressure level measurement range

This commit is contained in:
Bert Vermeulen 2013-06-17 01:25:41 +02:00
parent 0cd9107dfb
commit 8417ebad12
2 changed files with 6 additions and 0 deletions

View File

@ -91,6 +91,8 @@ static struct sr_config_info sr_config_info_data[] = {
"Hold max", NULL}, "Hold max", NULL},
{SR_CONF_HOLD_MIN, SR_T_BOOL, "hold_min", {SR_CONF_HOLD_MIN, SR_T_BOOL, "hold_min",
"Hold min", NULL}, "Hold min", NULL},
{SR_CONF_SPL_MEASUREMENT_RANGE, SR_T_UINT64_RANGE, "spl_meas_range",
"Sound pressure level measurement range", NULL},
{0, 0, NULL, NULL, NULL}, {0, 0, NULL, NULL, NULL},
}; };

View File

@ -141,6 +141,7 @@ enum {
SR_T_RATIONAL_PERIOD, SR_T_RATIONAL_PERIOD,
SR_T_RATIONAL_VOLT, SR_T_RATIONAL_VOLT,
SR_T_KEYVALUE, SR_T_KEYVALUE,
SR_T_UINT64_RANGE,
}; };
/** Value for sr_datafeed_packet.type. */ /** Value for sr_datafeed_packet.type. */
@ -671,6 +672,9 @@ enum {
/** Sound pressure level time weighting. */ /** Sound pressure level time weighting. */
SR_CONF_SPL_WEIGHT_TIME, SR_CONF_SPL_WEIGHT_TIME,
/** Sound pressure level measurement range. */
SR_CONF_SPL_MEASUREMENT_RANGE,
/** Max hold mode. */ /** Max hold mode. */
SR_CONF_HOLD_MAX, SR_CONF_HOLD_MAX,