]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_CONF key for sound pressure level measurement range
authorBert Vermeulen <redacted>
Sun, 16 Jun 2013 23:25:41 +0000 (01:25 +0200)
committerBert Vermeulen <redacted>
Mon, 17 Jun 2013 14:17:39 +0000 (16:17 +0200)
hwdriver.c
libsigrok.h

index 387b46dff9a25d556aee537dedd8c8f503d0783d..91d361f24aa3b663f2f1279bb52b8865be1396b9 100644 (file)
@@ -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},
 };
 
index dbd0c594f0097461218ca713aa82fd8f6ef9becf..5d3d93457901d3eed256576767a0bf31010083a2 100644 (file)
@@ -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,