I just want to clarify if my understanding of this variable is correct. Behaviour is not quite what I expect when I change things. This is taken from the u6Stream.c (attached) u6Stream.c 16.48KB 277 downloads file:
/* For USB StreamData, use Endpoint 3 for reads. You can read the multiple * StreamData responses of 64 bytes only if SamplesPerPacket is 25 to help * improve streaming performance. In this example this multiple is adjusted * by the readSizeMultiplier variable. */ //Reading stream response from U6 recChars = LJUSB_Stream(handle, recBuff, responseSize*readSizeMultiplier);
I think this means that if (and only if) I configure samplesPerPacket to be 25 I can read multiple packets with one call of LJUSB_Stream(). In this example readSizeMultipler controls how many packets I can read in one call of LJUSB_Stream(). So does this mean that LJUSB_Stream() will read as many packets as is specified by the expected bytes argument? For example if I simply set the number of expected bytes to 3*responseSize, will LJUSB_Stream read 3 packets at once?
Thanks for you help.