]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/colead-slm/protocol.h
Add sr_dev_acquisition_stop(), factor out SR_ERR_DEV_CLOSED check.
[libsigrok.git] / src / hardware / colead-slm / protocol.h
index 4cc49974a2682e608591ee3299c69e91236d386c..8b298bb7648b132bd901502a0932c7d8d2713525 100644 (file)
@@ -33,17 +33,8 @@ enum {
 
 /** 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;