X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkingst-la2016%2Fprotocol.h;fp=src%2Fhardware%2Fkingst-la2016%2Fprotocol.h;h=bbb44c336a8edcf7541b392aa47fa3d3a665b7ba;hb=796ce0bfb5db51da2c43f58bc1c705b5d6a5658e;hp=c536617fcd47aaba97f4b44e75dc170c768cedec;hpb=1291ea43c191726e3425a42cafd1bfd78f54929f;p=libsigrok.git diff --git a/src/hardware/kingst-la2016/protocol.h b/src/hardware/kingst-la2016/protocol.h index c536617f..bbb44c33 100644 --- a/src/hardware/kingst-la2016/protocol.h +++ b/src/hardware/kingst-la2016/protocol.h @@ -46,6 +46,7 @@ */ #define LA2016_EP6_PKTSZ 512 /* Max packet size of USB endpoint 6. */ #define LA2016_USB_BUFSZ (256 * 2 * LA2016_EP6_PKTSZ) /* 256KiB buffer. */ +#define LA2016_USB_XFER_COUNT 32 /* Size of USB bulk transfers pool. */ /* USB communication timeout during regular operation. */ #define DEFAULT_TIMEOUT_MS 200 @@ -148,7 +149,7 @@ struct dev_context { uint32_t read_pos; struct feed_queue_logic *feed_queue; - struct libusb_transfer *transfer; + GSList *transfers; size_t transfer_bufsize; };