X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ffx2lafw%2Fprotocol.h;h=fef0dd76bb85f8ae730d4553fb9760b780ac625c;hb=b5bbc3f1b00d5f3096c6800af4069fb07704d3a9;hp=dc1c83ff62098f2895737b20c0c6eaad7df84e52;hpb=b0ccd64d021ae7c9dbcebc8413dc2ebe94099f68;p=libsigrok.git diff --git a/hardware/fx2lafw/protocol.h b/hardware/fx2lafw/protocol.h index dc1c83ff..fef0dd76 100644 --- a/hardware/fx2lafw/protocol.h +++ b/hardware/fx2lafw/protocol.h @@ -34,7 +34,6 @@ #define USB_INTERFACE 0 #define USB_CONFIGURATION 1 #define NUM_TRIGGER_STAGES 4 -#define TRIGGER_TYPE "01" #define MAX_RENUM_DELAY_MS 3000 #define NUM_SIMUL_TRANSFERS 32 @@ -63,6 +62,9 @@ struct fx2lafw_profile { const char *firmware; uint32_t dev_caps; + + const char *usb_manufacturer; + const char *usb_product; }; struct dev_context { @@ -83,10 +85,7 @@ struct dev_context { gboolean trigger_fired; gboolean acq_aborted; gboolean sample_wide; - uint16_t trigger_mask[NUM_TRIGGER_STAGES]; - uint16_t trigger_value[NUM_TRIGGER_STAGES]; - unsigned int trigger_stage; - uint16_t trigger_buffer[NUM_TRIGGER_STAGES]; + struct soft_trigger_logic *stl; unsigned int sent_samples; int submitted_transfers; @@ -98,11 +97,9 @@ 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); SR_PRIV struct dev_context *fx2lafw_dev_new(void); SR_PRIV void fx2lafw_abort_acquisition(struct dev_context *devc); SR_PRIV void fx2lafw_receive_transfer(struct libusb_transfer *transfer);