]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/protocol.h
fx2lafw: Allow matching USB descriptor strings as well as VID/PID.
[libsigrok.git] / hardware / fx2lafw / protocol.h
index dc1c83ff62098f2895737b20c0c6eaad7df84e52..dfb6ef8a909537c5a1c9bc0a8f5289034d529fbe 100644 (file)
@@ -63,6 +63,9 @@ struct fx2lafw_profile {
        const char *firmware;
 
        uint32_t dev_caps;
+
+       const char *usb_manufacturer;
+       const char *usb_product;
 };
 
 struct dev_context {
@@ -98,8 +101,7 @@ struct dev_context {
        struct sr_context *ctx;
 };
 
-SR_PRIV int fx2lafw_command_start_acquisition(libusb_device_handle *devhdl,
-               uint64_t samplerate, gboolean samplewide);
+SR_PRIV int fx2lafw_command_start_acquisition(const struct sr_dev_inst *sdi);
 SR_PRIV gboolean fx2lafw_check_conf_profile(libusb_device *dev);
 SR_PRIV int fx2lafw_dev_open(struct sr_dev_inst *sdi, struct sr_dev_driver *di);
 SR_PRIV int fx2lafw_configure_channels(const struct sr_dev_inst *sdi);