X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkecheng-kc-330b%2Fprotocol.h;h=e750ff472ce6d801f080a973883f6ed321d57ca5;hb=090f1e1e5478ea15baa3731fefbd4aff9be78c77;hp=ff3ce8b90d7f437da9fd85754f8015e3d6dff7ef;hpb=55462b8ba9f48931de9b9a7bfbc182a1d113b3b5;p=libsigrok.git diff --git a/src/hardware/kecheng-kc-330b/protocol.h b/src/hardware/kecheng-kc-330b/protocol.h index ff3ce8b9..e750ff47 100644 --- a/src/hardware/kecheng-kc-330b/protocol.h +++ b/src/hardware/kecheng-kc-330b/protocol.h @@ -22,7 +22,7 @@ #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "kecheng-kc-330b" @@ -66,28 +66,22 @@ enum { DEVICE_INACTIVE, }; -/** Private, per-device-instance driver context. */ struct dev_context { - /* Acquisition settings */ uint64_t limit_samples; int sample_interval; int alarm_low; int alarm_high; - uint64_t mqflags; + enum sr_mqflag mqflags; int data_source; - /* Operational state */ int state; gboolean config_dirty; uint64_t num_samples; uint64_t stored_samples; - void *cb_data; struct libusb_transfer *xfer; unsigned char buf[128]; - /* Temporary state across callbacks */ gint64 last_live_request; - }; SR_PRIV int kecheng_kc_330b_handle_events(int fd, int revents, void *cb_data);