X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fnorma-dmm%2Fprotocol.h;h=7ce7911f95986f6a45f0f2375e9a54bfe2f7c7c7;hb=b02bb45f4cf6378520e5a5b82ff39013cfa270b6;hp=951734e8f99667b7502375e4e0eab500309e9d5d;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/norma-dmm/protocol.h b/src/hardware/norma-dmm/protocol.h index 951734e8..7ce7911f 100644 --- a/src/hardware/norma-dmm/protocol.h +++ b/src/hardware/norma-dmm/protocol.h @@ -23,10 +23,9 @@ #include #include #include -#include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" /** @file @@ -58,15 +57,10 @@ extern const struct nmadmm_req nmadmm_requests[]; /** Private, per-device-instance driver context. */ struct dev_context { /* Model-specific information */ - char *version; /**< Version string */ int type; /**< DM9x0, e.g. 5 = DM950 */ /* Acquisition settings */ - uint64_t limit_samples; /**< Target number of samples */ - uint64_t limit_msec; /**< Target sampling time */ - - /* Opaque pointer passed in by frontend. */ - void *cb_data; + struct sr_sw_limits limits; /* Operational state */ int last_req; /**< Last request. */ @@ -75,8 +69,6 @@ struct dev_context { int lowbatt; /**< Low battery. 1=low, 2=critical. */ /* Temporary state across callbacks */ - uint64_t num_samples; /**< Current #samples. */ - GTimer *elapsed_msec; /**< Used for limit_msec */ uint8_t buf[NMADMM_BUFSIZE]; /**< Buffer for read callback */ int buflen; /**< Data len in buf */ };