X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fteleinfo%2Fprotocol.h;h=b617074fd74293b311181a6780f7d041d05756dd;hb=fe953391bd7782813256c02350afa1996c773659;hp=f95c50eba16e69ced766a583b762c0b6974c1a32;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/teleinfo/protocol.h b/src/hardware/teleinfo/protocol.h index f95c50eb..b617074f 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" @@ -37,19 +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). */ - void *session_cb_data; /**< Opaque pointer passed in by the frontend. */ - - /* Operational state */ - enum optarif optarif; /**< The device mode (which mesures 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; };