#define LA2016_THR_VOLTAGE_MIN 0.40
#define LA2016_THR_VOLTAGE_MAX 4.00
+/* Properties related to the layout of capture data downloads. */
+#define TRANSFER_PACKET_LENGTH 16
#define LA2016_NUM_SAMPLES_MAX (UINT64_C(10 * 1000 * 1000 * 1000))
/* Maximum device capabilities. May differ between models. */
#define LA2016_NUM_PWMCH_MAX 2
+/*
+ * Whether to de-initialize the device hardware in the driver's close
+ * callback. It is desirable to e.g. configure PWM channels and leave
+ * the generator running after the application shuts down. Users can
+ * always disable channels on their way out if they want to.
+ */
+#define WITH_DEINIT_IN_CLOSE 0
+
#define LA2016_CONVBUFFER_SIZE (4 * 1024 * 1024)
struct kingst_model {
gboolean trigger_involved;
gboolean completion_seen;
gboolean download_finished;
+ uint32_t packets_per_chunk;
struct capture_info {
uint32_t n_rep_packets;
uint32_t n_rep_packets_before_trigger;