X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ffx2lafw%2Fprotocol.h;h=11887c80d7bd2ac93c41392ba6d7564ab2949706;hb=9615eeb572be5db9e770c0e343f80ab212335e3f;hp=82fb1e6adaf21b5ac494ab06704a1d7f55548a9a;hpb=aeff7fa28622367115c3c8bdbd965c07dd536458;p=libsigrok.git diff --git a/hardware/fx2lafw/protocol.h b/hardware/fx2lafw/protocol.h index 82fb1e6a..11887c80 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 SOFT_TRIGGER_TYPES "01" #define MAX_RENUM_DELAY_MS 3000 #define NUM_SIMUL_TRANSFERS 32 @@ -86,10 +85,8 @@ 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]; + unsigned int cur_trigger_stage; + int cur_trigger_step; unsigned int sent_samples; int submitted_transfers; @@ -104,7 +101,6 @@ struct dev_context { 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);