X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmotech-lps-30x%2Fprotocol.h;h=cb74148f468dcf82c75871cef191747c8239f164;hb=53279f13e4694fcf2aba314baade418941b0bc3e;hp=728c60059c60744d70281ba6ae598dd7ecf6cfc2;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/protocol.h b/src/hardware/motech-lps-30x/protocol.h index 728c6005..cb74148f 100644 --- a/src/hardware/motech-lps-30x/protocol.h +++ b/src/hardware/motech-lps-30x/protocol.h @@ -18,9 +18,12 @@ * along with this program. If not, see . */ -/** @file - * Motech LPS-30x series power supply driver - * @internal +/** + * @file + * + * Motech LPS-30x series power supply driver + * + * @internal */ #ifndef LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H @@ -97,8 +100,7 @@ struct dev_context { /* Acquisition status */ gboolean acq_running; /**< Acquisition is running. */ - uint64_t limit_samples; /**< Target number of samples */ - uint64_t limit_msec; /**< Target sampling time */ + struct sr_sw_limits limits; acquisition_req acq_req; /**< Current request. */ uint8_t acq_req_pending; /**< Request pending. 0=none, 1=reply, 2=OK */ @@ -108,8 +110,6 @@ struct dev_context { /* Temporary state across callbacks */ int64_t req_sent_at; /**< Request sent. */ - uint64_t num_samples; /**< Current #samples for limit_samples */ - GTimer *elapsed_msec; /**< Used for sampling with limit_msec */ gchar buf[LINELEN_MAX]; /**< Buffer for read callback */ int buflen; /**< Data len in buf */ };