]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok.h
rigol-ds: Add support for Agilent DSO1014A.
[libsigrok.git] / libsigrok.h
index 6e81c6f69851dbbb7e33aca7d35198d80fc670bf..caa13757c32a9923976524a840c19cf64e025f1e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBSIGROK_SIGROK_H
-#define LIBSIGROK_SIGROK_H
+#ifndef LIBSIGROK_LIBSIGROK_H
+#define LIBSIGROK_LIBSIGROK_H
 
 #include <stdio.h>
 #include <sys/time.h>
@@ -299,9 +299,18 @@ enum {
        SR_MQFLAG_SPL_PCT_OVER_ALARM = 0x10000,
        /** Time is duration (as opposed to epoch, ...). */
        SR_MQFLAG_DURATION = 0x20000,
+       /** Device is in "avg" mode, averaging upon each new value. */
+       SR_MQFLAG_AVG = 0x40000,
 };
 
-/** sigrok context (opaque). @see sr_init(), sr_exit(). */
+/**
+ * @struct sr_context
+ * Opaque structure representing a libsigrok context.
+ *
+ * None of the fields of this structure are meant to be accessed directly.
+ *
+ * @see sr_init(), sr_exit().
+ */
 struct sr_context;
 
 /** Packet in a sigrok data feed. */
@@ -670,6 +679,9 @@ enum {
        /** The device can measure energy consumption. */
        SR_CONF_ENERGYMETER,
 
+       /** The device can demodulate signals. */
+       SR_CONF_DEMODULATOR,
+
        /*--- Driver scan options -------------------------------------------*/
 
        /**
@@ -782,6 +794,12 @@ enum {
         */
        SR_CONF_SWAP,
 
+        /** Center frequency.
+         * The input signal is downmixed by this frequency before the ADC
+         * anti-aliasing filter.
+         */
+        SR_CONF_CENTER_FREQUENCY,
+
        /*--- Special stuff -------------------------------------------------*/
 
        /** Scan options supported by the driver. */
@@ -946,6 +964,8 @@ struct sr_dev_driver {
 };
 
 /**
+ * @struct sr_session
+ *
  * Opaque data structure representing a libsigrok session. None of the fields
  * of this structure are meant to be accessed directly.
  */