X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Fprotocol.h;h=aedac6ee325374212827fbacbf4ef98b1287fbcd;hb=e57057aee778e723da572a6b5e2bd01526cc7beb;hp=d890775bf75dc4f8ce42c5d2a5061a417fc8c7b0;hpb=515ab0889ebde4b373d620044a1a98da37153056;p=libsigrok.git diff --git a/src/hardware/sysclk-lwla/protocol.h b/src/hardware/sysclk-lwla/protocol.h index d890775b..aedac6ee 100644 --- a/src/hardware/sysclk-lwla/protocol.h +++ b/src/hardware/sysclk-lwla/protocol.h @@ -24,7 +24,7 @@ #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #include "lwla.h" @@ -34,6 +34,7 @@ #define MODEL_NAME "LWLA1034" #define USB_VID_PID "2961.6689" +#define USB_CONFIG 1 #define USB_INTERFACE 0 #define USB_TIMEOUT_MS 3000 @@ -241,6 +242,9 @@ struct dev_context { /** Trigger slope configuration setting. */ enum signal_edge cfg_trigger_slope; + /** Whether a running acquisition should be canceled. */ + gboolean cancel_requested; + /* Indicates that stopping the acquisition is currently in progress. */ gboolean stopping_in_progress; @@ -252,7 +256,6 @@ SR_PRIV struct acquisition_state *lwla_alloc_acquisition_state(void); SR_PRIV void lwla_free_acquisition_state(struct acquisition_state *acq); SR_PRIV int lwla_init_device(const struct sr_dev_inst *sdi); -SR_PRIV int lwla_convert_trigger(const struct sr_dev_inst *sdi); SR_PRIV int lwla_set_clock_config(const struct sr_dev_inst *sdi); SR_PRIV int lwla_setup_acquisition(const struct sr_dev_inst *sdi); SR_PRIV int lwla_start_acquisition(const struct sr_dev_inst *sdi);