X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fnorma-dmm%2Fprotocol.h;h=bec6107046b51e0a11f5f66a6e7aca1b973c1f78;hb=b35d0023a88b4871be3d4de542b8b170f122ed9e;hp=7c52b47ffec61a48b206f22c78feb2c8b0fce4fb;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git diff --git a/src/hardware/norma-dmm/protocol.h b/src/hardware/norma-dmm/protocol.h index 7c52b47f..bec61070 100644 --- a/src/hardware/norma-dmm/protocol.h +++ b/src/hardware/norma-dmm/protocol.h @@ -28,14 +28,17 @@ #include #include "libsigrok-internal.h" -/** @file - * Norma DM9x0/Siemens B102x DMMs driver. - * @internal +/** + * @file + * + * Norma DM9x0/Siemens B102x DMMs driver. + * + * @internal */ #define LOG_PREFIX "norma-dmm" -#define NMADMM_BUFSIZE 256 +#define NMADMM_BUFSIZE 256 #define NMADMM_TIMEOUT_MS 2000 /**< Request timeout. */ @@ -57,15 +60,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. */ @@ -74,8 +72,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 */ };