]> 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 2958a9695ce76c8e583a04a9f5b70a07b3336c6d..a77c94ae458f97c726cbdd3aae25bcca5b4c291e 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
- * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2013 Bert Vermeulen <bert@biot.com>
  * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
  *
  * This program is free software: you can redistribute it and/or modify
@@ -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,11 +95,9 @@ struct dev_context {
        int empty_transfer_count;
 
        void *cb_data;
-
-       struct sr_usb_dev_inst *usb;
-
        unsigned int num_transfers;
        struct libusb_transfer **transfers;
+       int *usbfd;
 };
 
 #endif