X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbrymen-dmm%2Fprotocol.h;h=d5090ee63b3783524d378ce8b523a68fd0c708a7;hb=c54ca323400bd03400e489cd5661bc28d81410c2;hp=24fe63d3206856765b9dc925ef45fa8b99d06b71;hpb=5faebab2903dc91949edc31f0a4b118d86090a30;p=libsigrok.git diff --git a/src/hardware/brymen-dmm/protocol.h b/src/hardware/brymen-dmm/protocol.h index 24fe63d3..d5090ee6 100644 --- a/src/hardware/brymen-dmm/protocol.h +++ b/src/hardware/brymen-dmm/protocol.h @@ -38,22 +38,8 @@ enum packet_len_status { PACKET_INVALID_HEADER, }; -/** Private, per-device-instance driver context. */ struct dev_context { - /** The current sampling limit (in number of samples). */ - uint64_t limit_samples; - - /** The current sampling limit (in ms). */ - uint64_t limit_msec; - - /** Opaque pointer passed in by the frontend. */ - void *cb_data; - - /** The current number of already received samples. */ - uint64_t num_samples; - - /** Start time of acquisition session */ - int64_t starttime; + struct sr_sw_limits sw_limits; uint8_t buf[DMM_BUFSIZE]; int bufoffset; @@ -77,7 +63,7 @@ SR_PRIV int brymen_packet_length(const uint8_t *buf, int *len); SR_PRIV gboolean brymen_packet_is_valid(const uint8_t *buf); SR_PRIV int brymen_parse(const uint8_t *buf, float *floatval, - struct sr_datafeed_analog_old *analog, void *info); + struct sr_datafeed_analog *analog, void *info); SR_PRIV int brymen_stream_detect(struct sr_serial_dev_inst *serial, uint8_t *buf, size_t *buflen,