X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ffluke-dmm%2Ffluke-dmm.h;h=ecfa36cbb6948a4805db26700599811052f14691;hb=1e1fdbc994e7c7345698e776e73d7ea5c4d950a9;hp=664d76d95f1b06197626becb161da289dae78da2;hpb=204014007f30a3980e6abb35b91bf654d190d81f;p=libsigrok.git diff --git a/src/hardware/fluke-dmm/fluke-dmm.h b/src/hardware/fluke-dmm/fluke-dmm.h index 664d76d9..ecfa36cb 100644 --- a/src/hardware/fluke-dmm/fluke-dmm.h +++ b/src/hardware/fluke-dmm/fluke-dmm.h @@ -33,6 +33,7 @@ enum { FLUKE_189, FLUKE_287, FLUKE_190, + FLUKE_289, }; /* Supported device profiles */ @@ -48,23 +49,18 @@ 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; int expect_response; int meas_type; int is_relative; - int mq; - int unit; - int mqflags; + enum sr_mq mq; + enum sr_unit unit; + enum sr_mqflag mqflags; }; SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data);