/* Supported models */
enum {
FLUKE_187 = 1,
+ FLUKE_287,
};
/* Supported device profiles */
struct flukedmm_profile {
int model;
const char *modelname;
-};
-
-/* Private driver context. */
-struct drv_context {
- GSList *instances;
+ /* How often to poll, in ms. */
+ int poll_period;
};
/* Private, per-device-instance driver context. */
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;
/* Runtime. */
uint64_t num_samples;
- unsigned char buf[FLUKEDMM_BUFSIZE];
+ char buf[FLUKEDMM_BUFSIZE];
int buflen;
+ int64_t cmd_sent_at;
+ int expect_response;
};
+SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data);
+
#endif /* LIBSIGROK_FLUKE_DMM_H */