]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/appa-55ii/protocol.h
Use driver name as the log prefix in standard functions
[libsigrok.git] / src / hardware / appa-55ii / protocol.h
index fa3c247694a4c2b9b680b18e84c2fbc4c250fdca..eeae8e1ad4c4ce3e124095a4c68809d6c070cfef 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <stdint.h>
 #include <glib.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "appa-55ii"
@@ -39,14 +39,8 @@ enum {
 /** Private, per-device-instance driver context. */
 struct dev_context {
        /* Acquisition settings */
-       uint64_t limit_samples;   /**< The sampling limit (in number of samples). */
-       uint64_t limit_msec;      /**< The time limit (in milliseconds). */
+       struct sr_sw_limits limits;
        gboolean data_source;     /**< Whether to read live samples or memory */
-       void *session_cb_data;    /**< Opaque pointer passed in by the frontend. */
-
-       /* Operational state */
-       uint64_t num_samples;     /**< The number of already received samples. */
-       int64_t start_time;       /**< The time at which sampling started. */
 
        /* Temporary state across callbacks */
        uint8_t buf[APPA_55II_BUF_SIZE];