X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ftesto%2Fprotocol.h;h=a6def0b5343330bcdc1ed7367e5c0c95738a3d3c;hb=e434f624ba0c6ebde3c08eca8de241c035283703;hp=62607e2b60d152f307cc396b324ed7c160cb56fb;hpb=55462b8ba9f48931de9b9a7bfbc182a1d113b3b5;p=libsigrok.git diff --git a/src/hardware/testo/protocol.h b/src/hardware/testo/protocol.h index 62607e2b..a6def0b5 100644 --- a/src/hardware/testo/protocol.h +++ b/src/hardware/testo/protocol.h @@ -22,7 +22,7 @@ #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "testo" @@ -46,28 +46,18 @@ #define EP_OUT 2 | LIBUSB_ENDPOINT_OUT struct testo_model { - char *name; + const char *name; int request_size; const uint8_t *request; }; -/** Private, per-device-instance driver context. */ struct dev_context { - /* Model-specific information */ const struct testo_model *model; + struct sr_sw_limits sw_limits; - /* Acquisition settings */ - uint64_t limit_msec; - uint64_t limit_samples; - void *cb_data; - - /* Operational state */ - gint64 end_time; - uint64_t num_samples; uint8_t channel_units[MAX_CHANNELS]; int num_channels; - /* Temporary state across callbacks */ struct libusb_transfer *out_transfer; uint8_t reply[MAX_REPLY_SIZE]; int reply_size;