]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/teleinfo/protocol.h
serial: extend stream detect for variable length packet checkers
[libsigrok.git] / src / hardware / teleinfo / protocol.h
index b4aa0fef1244148d3573de4ed6f0f58e39701731..b617074fd74293b311181a6780f7d041d05756dd 100644 (file)
@@ -37,18 +37,9 @@ enum optarif {
 
 #define TELEINFO_BUF_SIZE 256
 
-/** 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). */
-
-       /* 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 */
+       struct sr_sw_limits sw_limits;
+       enum optarif optarif; /**< The device mode (which measures are reported) */
        uint8_t buf[TELEINFO_BUF_SIZE];
        int buf_len;
 };