]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/sysclk-lwla/protocol.h
sysclk-lwla: Use static array for LWLA1034 init sequence
[libsigrok.git] / src / hardware / sysclk-lwla / protocol.h
index 9ef21b05de0b26d6505af25b085e441cafb28921..5bdc71feff3a5d93595c242b229600b02d70b2bc 100644 (file)
@@ -59,7 +59,7 @@ enum {
 enum {
        USB_CONFIG      = 1,
        USB_INTERFACE   = 0,
-       USB_TIMEOUT_MS  = 3000,
+       USB_TIMEOUT_MS  = 1000,
 };
 
 /** USB device end points.
@@ -118,12 +118,10 @@ enum protocol_state {
  */
 struct dev_context {
        uint64_t samplerate;    /* requested samplerate */
-
        uint64_t limit_msec;    /* requested capture duration in ms */
        uint64_t limit_samples; /* requested capture length in samples */
 
-       uint64_t channel_mask;  /* bit mask of enabled channels */
-
+       uint64_t channel_mask;          /* bit mask of enabled channels */
        uint64_t trigger_mask;          /* trigger enable mask */
        uint64_t trigger_edge_mask;     /* trigger type mask */
        uint64_t trigger_values;        /* trigger level/slope bits */
@@ -131,6 +129,7 @@ struct dev_context {
        const struct model_info *model;         /* device model descriptor */
        struct acquisition_state *acquisition;  /* running capture state */
        int active_fpga_config;                 /* FPGA configuration index */
+       gboolean short_transfer_quirk;          /* 64 bytes response limit */
 
        enum protocol_state state;      /* async protocol state */
        gboolean cancel_requested;      /* stop after current transfer */
@@ -164,8 +163,8 @@ struct model_info {
        int (*handle_response)(const struct sr_dev_inst *sdi);
 };
 
-SR_PRIV const struct model_info lwla1016_info;
-SR_PRIV const struct model_info lwla1034_info;
+extern SR_PRIV const struct model_info lwla1016_info;
+extern SR_PRIV const struct model_info lwla1034_info;
 
 SR_PRIV int lwla_start_acquisition(const struct sr_dev_inst *sdi);