X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Flwla.h;h=35e33f79ef8a8cf48069559cfb26925467f9abd5;hb=6ad2fbaad2722f0aa18c3600cdbdddf812784b2d;hp=35e3b0ea59044ffbf10e6005f32bc98765f7db5e;hpb=93ed0241aaf6e791e113b741435fa857891e86c2;p=libsigrok.git diff --git a/src/hardware/sysclk-lwla/lwla.h b/src/hardware/sysclk-lwla/lwla.h index 35e3b0ea..35e33f79 100644 --- a/src/hardware/sysclk-lwla/lwla.h +++ b/src/hardware/sysclk-lwla/lwla.h @@ -61,7 +61,7 @@ struct sr_usb_dev_inst; /* Maximum length of a register read/write sequence. */ -#define MAX_REG_SEQ_LEN 16 +#define MAX_REG_SEQ_LEN 8 /* Logic datafeed packet size in bytes. * This is a multiple of both 4 and 5 to match any model's unit size @@ -83,7 +83,7 @@ enum command_id { /** LWLA capture state flags. * The bit positions are the same as in the LWLA1016 control register. */ -enum { +enum status_flag { STATUS_CAPTURING = 1 << 2, STATUS_TRIGGERED = 1 << 5, STATUS_MEM_AVAIL = 1 << 6, @@ -154,7 +154,7 @@ SR_PRIV int lwla_send_command(const struct sr_usb_dev_inst *usb, const uint16_t *command, int cmd_len); SR_PRIV int lwla_receive_reply(const struct sr_usb_dev_inst *usb, - uint32_t *reply, int reply_len, int expect_len); + void *reply, int buf_size, int *xfer_len); SR_PRIV int lwla_read_reg(const struct sr_usb_dev_inst *usb, uint16_t reg, uint32_t *value);