From fd8854c4d030288be1007a4f81e0ba1228a9dbac Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sat, 15 Jun 2013 12:09:31 +0200 Subject: [PATCH] Add SR_CONF keys for sound pressure level time and frequency weighting --- hwdriver.c | 4 ++++ libsigrok.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/hwdriver.c b/hwdriver.c index a3eb3b74..1aec5afd 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -83,6 +83,10 @@ static struct sr_config_info sr_config_info_data[] = { "Coupling", NULL}, {SR_CONF_DATALOG, SR_T_BOOL, "datalog", "Datalog", NULL}, + {SR_CONF_SPL_WEIGHT_FREQ, SR_T_CHAR, "spl_weight_freq", + "Sound pressure level frequency weighting", NULL}, + {SR_CONF_SPL_WEIGHT_TIME, SR_T_CHAR, "spl_weight_time", + "Sound pressure level time weighting", NULL}, {0, 0, NULL, NULL, NULL}, }; diff --git a/libsigrok.h b/libsigrok.h index da6a1011..98f594b7 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -665,6 +665,12 @@ enum { /** Number of vertical divisions, as related to SR_CONF_VDIV. */ SR_CONF_NUM_VDIV, + /** Sound pressure level frequency weighting. */ + SR_CONF_SPL_WEIGHT_FREQ, + + /** Sound pressure level time weighting. */ + SR_CONF_SPL_WEIGHT_TIME, + /*--- Special stuff -------------------------------------------------*/ /** Scan options supported by the driver. */