]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/colead-slm/protocol.h
uni-t-ut32x: improve robustness of packet parser, more diagnostics
[libsigrok.git] / src / hardware / colead-slm / protocol.h
index 8942ac8558863a1dd5d94169c0a4c7836ded1f9c..1849a865193300736e32bb571a0388b10eaef08f 100644 (file)
@@ -21,7 +21,7 @@
 #define LIBSIGROK_HARDWARE_COLEAD_SLM_PROTOCOL_H
 
 #include <stdint.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "colead-slm"
@@ -31,19 +31,9 @@ enum {
        COMMAND_SENT,
 };
 
-/** Private, per-device-instance driver context. */
 struct dev_context {
-       /** The current sampling limit (in number of samples). */
-       uint64_t limit_samples;
+       struct sr_sw_limits limits;
 
-       /** The current sampling limit (in ms). */
-       uint64_t limit_msec;
-
-       /** Opaque pointer passed in by the frontend. */
-       void *cb_data;
-
-       /** The current number of already received samples. */
-       uint64_t num_samples;
        int state;
        char buf[10];
        int buflen;