X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ffluke-dmm%2Ffluke-dmm.h;h=e85682fbcf3e271bea982a0a3184ad13212cc06b;hb=b02bb45f4cf6378520e5a5b82ff39013cfa270b6;hp=d162bdd0e921d7525cb42c1c3ee8b33f9048c492;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/fluke-dmm/fluke-dmm.h b/src/hardware/fluke-dmm/fluke-dmm.h index d162bdd0..e85682fb 100644 --- a/src/hardware/fluke-dmm/fluke-dmm.h +++ b/src/hardware/fluke-dmm/fluke-dmm.h @@ -24,12 +24,16 @@ #define FLUKEDMM_BUFSIZE 256 +/* Always USB-serial, 1ms is plenty. */ +#define SERIAL_WRITE_TIMEOUT_MS 1 + /* Supported models */ enum { FLUKE_187 = 1, FLUKE_189, FLUKE_287, FLUKE_190, + FLUKE_289, }; /* Supported device profiles */ @@ -45,14 +49,9 @@ struct flukedmm_profile { /* Private, per-device-instance driver context. */ struct dev_context { const struct flukedmm_profile *profile; - uint64_t limit_samples; - uint64_t limit_msec; - - /* Opaque pointer passed in by the frontend. */ - void *cb_data; + struct sr_sw_limits limits; /* Runtime. */ - uint64_t num_samples; char buf[FLUKEDMM_BUFSIZE]; int buflen; int64_t cmd_sent_at;