On Thu, September 26, 2013 8:45 am, Pete Batard wrote:
> On 2013.09.25 16:36, Kano wrote:
>> My question then I guess is: how do you do bulk transfers (read and
>> write)
>> to all 4 interfaces? The method I use on Linux, fails on windows.
>>
>> A control transfer is no problem since you effectively specify the
>> interface, but how do you do a bulk transfer?
>
> Well, libusb_bulk_transfer takes an endpoint as parameter, and as
> "Endpoints can't be shared between two interfaces within a
> configuration" [1], specifying an endpoint effectively specifies the
> interface you want to use as well.

Yep that's my error - works on linux - but not on windows.

Thanks - that clears it up altogether.

I didn't spot the obvious that an endpoint is unique across a device
thus it also indirectly identifies the interface.
i.e. all transfers do indeed infer the interface (via the endpoint)
so only one handle (that I'll have to lock access to and share across
threads ...) is required and the windows restriction of only allowing
one handle can be overcome.

> /Pete

-Thanks indeed Pete
-Kano

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to