]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.h
fx2lafw: Keep track of our own libusb fds
[libsigrok.git] / hardware / fx2lafw / fx2lafw.h
index bb936627f101aacc35a3e072a2d8560bbec620c5..a77c94ae458f97c726cbdd3aae25bcca5b4c291e 100644 (file)
@@ -71,7 +71,6 @@ struct fx2lafw_profile {
 
 struct dev_context {
        const struct fx2lafw_profile *profile;
-
        /*
         * Since we can't keep track of an fx2lafw device after upgrading
         * the firmware (it renumerates into a different device address
@@ -84,8 +83,8 @@ struct dev_context {
        uint64_t cur_samplerate;
        uint64_t limit_samples;
 
+       /* Operational settings */
        gboolean sample_wide;
-
        uint16_t trigger_mask[NUM_TRIGGER_STAGES];
        uint16_t trigger_value[NUM_TRIGGER_STAGES];
        int trigger_stage;
@@ -96,9 +95,9 @@ struct dev_context {
        int empty_transfer_count;
 
        void *cb_data;
-
        unsigned int num_transfers;
        struct libusb_transfer **transfers;
+       int *usbfd;
 };
 
 #endif