]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/protocol.h
fx2lafw: Rename trigger constant.
[libsigrok.git] / hardware / fx2lafw / protocol.h
index dc1c83ff62098f2895737b20c0c6eaad7df84e52..82fb1e6adaf21b5ac494ab06704a1d7f55548a9a 100644 (file)
@@ -34,7 +34,7 @@
 #define USB_INTERFACE          0
 #define USB_CONFIGURATION      1
 #define NUM_TRIGGER_STAGES     4
-#define TRIGGER_TYPE           "01"
+#define SOFT_TRIGGER_TYPES     "01"
 
 #define MAX_RENUM_DELAY_MS     3000
 #define NUM_SIMUL_TRANSFERS    32
@@ -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);