]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_CONF keys for sound pressure level time and frequency weighting
authorBert Vermeulen <redacted>
Sat, 15 Jun 2013 10:09:31 +0000 (12:09 +0200)
committerBert Vermeulen <redacted>
Mon, 17 Jun 2013 14:17:39 +0000 (16:17 +0200)
hwdriver.c
libsigrok.h

index a3eb3b7459450619806f4005007d06eed44b8147..1aec5afdbe7486360e6de5fcf423882e28317326 100644 (file)
@@ -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},
 };
 
index da6a10118b4afa39c889c474d732deb1155bba1d..98f594b74abe22b5a04af6cd9a411f76ca76fefa 100644 (file)
@@ -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. */