X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fcolead-slm%2Fprotocol.h;h=8b298bb7648b132bd901502a0932c7d8d2713525;hb=09e269ce217b317096340118cd0154a78f83e388;hp=8942ac8558863a1dd5d94169c0a4c7836ded1f9c;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/colead-slm/protocol.h b/src/hardware/colead-slm/protocol.h index 8942ac85..8b298bb7 100644 --- a/src/hardware/colead-slm/protocol.h +++ b/src/hardware/colead-slm/protocol.h @@ -21,7 +21,7 @@ #define LIBSIGROK_HARDWARE_COLEAD_SLM_PROTOCOL_H #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "colead-slm" @@ -33,17 +33,8 @@ enum { /** Private, per-device-instance driver context. */ struct dev_context { - /** The current sampling limit (in number of samples). */ - uint64_t limit_samples; + struct sr_sw_limits limits; - /** 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; int state; char buf[10]; int buflen;