]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/mic-985xx/protocol.h
mic-985xx: Use software limit helpers
[libsigrok.git] / src / hardware / mic-985xx / protocol.h
index d522c0a4e537ff6ee524fbc0efa0c1a5421f4fc9..d3aaf37be9fed2ea62174f50381d9f9d3185bc1e 100644 (file)
@@ -54,16 +54,7 @@ extern SR_PRIV const struct mic_dev_info mic_devs[];
 
 /** Private, per-device-instance driver context. */
 struct dev_context {
-       /** The current sampling limit (in number of samples). */
-       uint64_t limit_samples;
-
-       /** The current sampling limit (in ms). */
-       uint64_t limit_msec;
-
-       /** The current number of already received samples. */
-       uint64_t num_samples;
-
-       int64_t starttime;
+       struct sr_sw_limits limits;
 
        uint8_t buf[SERIAL_BUFSIZE];
        int bufoffset;