X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fteleinfo%2Fprotocol.h;h=f450547ec6b664b00d75a2ec6507eb2ab84b38fd;hb=82458e50b1d711fcc5b179900691cdfb77cb86e1;hp=303305e7a66cf67480db0133630d051097ea3595;hpb=f3f19d1131025b68d29a11273b627c83d748e7ea;p=libsigrok.git diff --git a/src/hardware/teleinfo/protocol.h b/src/hardware/teleinfo/protocol.h index 303305e7..f450547e 100644 --- a/src/hardware/teleinfo/protocol.h +++ b/src/hardware/teleinfo/protocol.h @@ -22,7 +22,7 @@ #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "teleinfo" @@ -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. */ + enum optarif optarif; /**< The device mode (which measures are reported) */ /* Temporary state across callbacks */ uint8_t buf[TELEINFO_BUF_SIZE];