]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok.h
Add SR_CONF key for powering off a device
[libsigrok.git] / libsigrok.h
index 6cda5543223d17cfceb225c0dce40ded25899feb..7019fdb21e7685292cc3136a7db7f3c5c165e837 100644 (file)
@@ -72,6 +72,7 @@ enum {
        SR_ERR_SAMPLERATE = -5, /**< Incorrect samplerate. */
        SR_ERR_NA         = -6, /**< Not applicable. */
        SR_ERR_DEV_CLOSED = -7, /**< Device is closed, but needs to be open. */
+       SR_ERR_TIMEOUT    = -8, /**< A timeout occurred. */
 
        /*
         * Note: When adding entries here, don't forget to also update the
@@ -140,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. */
@@ -664,6 +666,21 @@ 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,
+
+       /** Sound pressure level measurement range.  */
+       SR_CONF_SPL_MEASUREMENT_RANGE,
+
+       /** Max hold mode. */
+       SR_CONF_HOLD_MAX,
+
+       /** Min hold mode. */
+       SR_CONF_HOLD_MIN,
+
        /*--- Special stuff -------------------------------------------------*/
 
        /** Scan options supported by the driver. */
@@ -684,6 +701,9 @@ enum {
        /** The device supports setting the number of probes. */
        SR_CONF_CAPTURE_NUM_PROBES,
 
+       /** Power off the device. */
+       SR_CONF_POWER_OFF,
+
        /*--- Acquisition modes ---------------------------------------------*/
 
        /**