#define LOG_PREFIX "sysclk-lwla"
-#include "lwla.h"
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
#include <stdint.h>
#include <glib.h>
+#include <libsigrok/libsigrok.h>
+#include "libsigrok-internal.h"
+#include "lwla.h"
/* For now, only the LWLA1034 is supported.
*/
#define MODEL_NAME "LWLA1034"
#define USB_VID_PID "2961.6689"
+#define USB_CONFIG 1
#define USB_INTERFACE 0
#define USB_TIMEOUT_MS 3000
/** 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;
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);