]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic16/protocol.h
saleae-logic16: Reworked scan/open to handle FW upload.
[libsigrok.git] / hardware / saleae-logic16 / protocol.h
index 0551712f1bdafab7ac0d4c2064ca7501e99fb675..a13f1858e507e599df9c51b0a0aed159553bdb2e 100644 (file)
 
 /** Private, per-device-instance driver context. */
 struct dev_context {
+       /*
+        * Since we can't keep track of a Logic16 device after upgrading
+        * the firmware (it renumerates into a different device address
+        * after the upgrade) this is like a global lock. No device will open
+        * until a proper delay after the last device was upgraded.
+        */
+       int64_t fw_updated;
+
        /** The currently configured samplerate of the device. */
        uint64_t cur_samplerate;
 };