]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/teleinfo/protocol.h
std_serial_dev_acquisition_stop(): Remove dev_close_fn parameter
[libsigrok.git] / src / hardware / teleinfo / protocol.h
index 84a7546e2c2bfa4a03c3244a895f578df74765cf..3f896523c8bc1f9c0927c7d81144e991ab30e8df 100644 (file)
@@ -40,14 +40,10 @@ enum optarif {
 /** 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). */
-       void *session_cb_data;    /**< Opaque pointer passed in by the frontend. */
+       struct sr_sw_limits sw_limits;
 
        /* Operational state */
        enum optarif optarif;     /**< The device mode (which measures are reported) */
-       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[TELEINFO_BUF_SIZE];