X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fnorma-dmm%2Fprotocol.h;h=951734e8f99667b7502375e4e0eab500309e9d5d;hb=b5bbc3f1b00d5f3096c6800af4069fb07704d3a9;hp=2ed0e250346d4193fdd98ee12b8e7df8b140f195;hpb=3544f848e0d7f67af8e11ce7ec344b34cd797df3;p=libsigrok.git diff --git a/hardware/norma-dmm/protocol.h b/hardware/norma-dmm/protocol.h index 2ed0e250..951734e8 100644 --- a/hardware/norma-dmm/protocol.h +++ b/hardware/norma-dmm/protocol.h @@ -29,10 +29,17 @@ #include "libsigrok.h" #include "libsigrok-internal.h" +/** @file + * Norma DM9x0/Siemens B102x DMMs driver. + * @internal + */ + #define LOG_PREFIX "norma-dmm" #define NMADMM_BUFSIZE 256 +#define NMADMM_TIMEOUT_MS 2000 /**< Request timeout. */ + /** Norma DMM request types (used ones only, the DMMs support about 50). */ enum { NMADMM_REQ_IDN = 0, /**< Request identity */ @@ -63,6 +70,7 @@ struct dev_context { /* Operational state */ int last_req; /**< Last request. */ + int64_t req_sent_at; /**< Request sent. */ gboolean last_req_pending; /**< Last request not answered yet. */ int lowbatt; /**< Low battery. 1=low, 2=critical. */