From: Bert Vermeulen Date: Sun, 16 Jun 2013 23:25:41 +0000 (+0200) Subject: Add SR_CONF key for sound pressure level measurement range X-Git-Tag: libsigrok-0.2.1~52 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8417ebad122cfade0f9ae6db6cbd8e7249156753;p=libsigrok.git Add SR_CONF key for sound pressure level measurement range --- diff --git a/hwdriver.c b/hwdriver.c index 387b46df..91d361f2 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -91,6 +91,8 @@ static struct sr_config_info sr_config_info_data[] = { "Hold max", NULL}, {SR_CONF_HOLD_MIN, SR_T_BOOL, "hold_min", "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}, }; diff --git a/libsigrok.h b/libsigrok.h index dbd0c594..5d3d9345 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -141,6 +141,7 @@ enum { SR_T_RATIONAL_PERIOD, SR_T_RATIONAL_VOLT, SR_T_KEYVALUE, + SR_T_UINT64_RANGE, }; /** Value for sr_datafeed_packet.type. */ @@ -671,6 +672,9 @@ enum { /** Sound pressure level time weighting. */ SR_CONF_SPL_WEIGHT_TIME, + /** Sound pressure level measurement range. */ + SR_CONF_SPL_MEASUREMENT_RANGE, + /** Max hold mode. */ SR_CONF_HOLD_MAX,