]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.h
serial-dmm: Add Digitek DT4000ZC support.
[libsigrok.git] / hardware / fx2lafw / fx2lafw.h
index c8a1d929380bf1f5fb8ef504a42fbee2e7166884..c68b4aecda0ec2cfca53e3b5e914557fd5fef78b 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 #include <glib.h>
-#include <stdbool.h>
 
 #ifndef LIBSIGROK_HARDWARE_FX2LAFW_FX2LAFW_H
 #define LIBSIGROK_HARDWARE_FX2LAFW_FX2LAFW_H
@@ -61,7 +60,7 @@ struct fx2lafw_profile {
        uint32_t dev_caps;
 };
 
-struct context {
+struct dev_context {
        const struct fx2lafw_profile *profile;
 
        /*
@@ -76,7 +75,7 @@ struct context {
        uint64_t cur_samplerate;
        uint64_t limit_samples;
 
-       bool sample_wide;
+       gboolean sample_wide;
 
        uint16_t trigger_mask[NUM_TRIGGER_STAGES];
        uint16_t trigger_value[NUM_TRIGGER_STAGES];
@@ -85,10 +84,14 @@ struct context {
 
        int num_samples;
        int submitted_transfers;
+       int empty_transfer_count;
 
        void *session_dev_id;
 
        struct sr_usb_dev_inst *usb;
+
+       unsigned int num_transfers;
+       struct libusb_transfer **transfers;
 };
 
 #endif