X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbrymen-dmm%2Fprotocol.h;h=d5090ee63b3783524d378ce8b523a68fd0c708a7;hb=b65649f6b9dca28829e4f242ae79c75db767fdfa;hp=3a695b4471f65ddfda9e1b898a74d153dd0289f9;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git diff --git a/src/hardware/brymen-dmm/protocol.h b/src/hardware/brymen-dmm/protocol.h index 3a695b44..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;