From: Bert Vermeulen Date: Sat, 15 Jun 2013 10:09:31 +0000 (+0200) Subject: Add SR_CONF keys for sound pressure level time and frequency weighting X-Git-Tag: libsigrok-0.2.1~58 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fd8854c4d030288be1007a4f81e0ba1228a9dbac;p=libsigrok.git Add SR_CONF keys for sound pressure level time and frequency weighting --- 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. */