]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kern-scale/protocol.h
Remove unnecessary std_serial_dev_acquisition_stop() wrappers
[libsigrok.git] / src / hardware / kern-scale / protocol.h
index fce47003a669e68dbd4ce6076ce507532e5eec2a..dcfe06cbdadf4ce968084002045f34fb5771ee1c 100644 (file)
@@ -49,20 +49,7 @@ struct scale_info {
 
 /** Private, per-device-instance driver context. */
 struct dev_context {
-       /** The current sampling limit (in number of samples). */
-       uint64_t limit_samples;
-
-       /** The time limit (in milliseconds). */
-       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;
-
-       /** The starting time of current sampling run. */
-       int64_t starttime;
+       struct sr_sw_limits limits;
 
        uint8_t buf[SCALE_BUFSIZE];
        int bufoffset;