From 8417ebad122cfade0f9ae6db6cbd8e7249156753 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 17 Jun 2013 01:25:41 +0200 Subject: [PATCH] Add SR_CONF key for sound pressure level measurement range --- hwdriver.c | 2 ++ libsigrok.h | 4 ++++ 2 files changed, 6 insertions(+) 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,