gboolean (*packet_valid)(const uint8_t *);
/** Packet parsing function. */
int (*packet_parse)(const uint8_t *, float *,
- struct sr_datafeed_analog_old *, void *);
+ struct sr_datafeed_analog *, void *);
/** */
- void (*dmm_details)(struct sr_datafeed_analog_old *, void *);
+ void (*dmm_details)(struct sr_datafeed_analog *, void *);
/** Size of chipset info struct. */
gsize info_size;
};
/** Private, per-device-instance driver context. */
struct dev_context {
- /** The current sampling limit (in number of samples). */
- uint64_t limit_samples;
-
- /** The time limit (in milliseconds). */
- uint64_t limit_msec;
-
- /** The current number of already received samples. */
- uint64_t num_samples;
-
- /** The starting time of current sampling run. */
- int64_t starttime;
+ struct sr_sw_limits limits;
uint8_t buf[DMM_BUFSIZE];
int bufoffset;