]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fluke-dmm/fluke-dmm.h
Fixed session_driver so that it can run more than one session.
[libsigrok.git] / hardware / fluke-dmm / fluke-dmm.h
index 495ff9f3a511317167bc6f5fdf7cab81f4cc7cef..4291be06c5183e69a8440f31cf4d3d6da8df4699 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
  *
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef LIBSIGROK_HARDWARE_FLUKE_DMM_FLUKE_DMM_H
+#define LIBSIGROK_HARDWARE_FLUKE_DMM_FLUKE_DMM_H
 
-#ifndef LIBSIGROK_FLUKE_DMM_H
-#define LIBSIGROK_FLUKE_DMM_H
+#define LOG_PREFIX "fluke-dmm"
 
 #define FLUKEDMM_BUFSIZE  256
 
@@ -27,6 +28,7 @@
 enum {
        FLUKE_187 = 1,
        FLUKE_287,
+       FLUKE_190,
 };
 
 /* Supported device profiles */
@@ -35,6 +37,8 @@ struct flukedmm_profile {
        const char *modelname;
        /* How often to poll, in ms. */
        int poll_period;
+       /* If no response received, how long to wait before retrying. */
+       int timeout;
 };
 
 /* Private, per-device-instance driver context. */
@@ -42,8 +46,6 @@ struct dev_context {
        const struct flukedmm_profile *profile;
        uint64_t limit_samples;
        uint64_t limit_msec;
-       struct sr_serial_dev_inst *serial;
-       char *serialcomm;
 
        /* Opaque pointer passed in by the frontend. */
        void *cb_data;
@@ -54,8 +56,13 @@ struct dev_context {
        int buflen;
        int64_t cmd_sent_at;
        int expect_response;
+       int meas_type;
+       int is_relative;
+       int mq;
+       int unit;
+       int mqflags;
 };
 
 SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data);
 
-#endif /* LIBSIGROK_FLUKE_DMM_H */
+#endif