Re: [Libusbx-devel] How libusb(x) know which interface to talk to

2013-04-01 Thread Tim Roberts
Wander Lairson Costa wrote: > You mean, I cannot have endpoint 1 both on interface 0 and interface > 1? I was not aware of that. Correct. Endpoints are global, and interfaces are just a software mechanism for collecting the endpoints into related groups. Packets on the USB wire do not have an in

Re: [Libusbx-devel] How libusb(x) know which interface to talk to

2013-03-30 Thread Wander Lairson Costa
2013/3/30 Alan Stern : > On Sat, 30 Mar 2013, Wander Lairson Costa wrote: > [snip] > It is mentioned explicitly in section 9.6.3 of the USB-2 spec: > > An endpoint is not shared among interfaces within a single > configuration unless the endpoint is used by alternate settings >

Re: [Libusbx-devel] How libusb(x) know which interface to talk to

2013-03-30 Thread Alan Stern
On Sat, 30 Mar 2013, Wander Lairson Costa wrote: > 2013/3/29 Alan Stern : > > On Fri, 29 Mar 2013, Wander Lairson Costa wrote: > > > >> Dear all, > >> > >> I have a (kind of dumb) question regarding libusb_bulk_transfer and > >> libusb_interrupt_transfer functions. These functions don't receive an

Re: [Libusbx-devel] How libusb(x) know which interface to talk to

2013-03-30 Thread Wander Lairson Costa
2013/3/29 Alan Stern : > On Fri, 29 Mar 2013, Wander Lairson Costa wrote: > >> Dear all, >> >> I have a (kind of dumb) question regarding libusb_bulk_transfer and >> libusb_interrupt_transfer functions. These functions don't receive any >> interface related information in their parameters, so, whic

Re: [Libusbx-devel] How libusb(x) know which interface to talk to

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, Wander Lairson Costa wrote: > Dear all, > > I have a (kind of dumb) question regarding libusb_bulk_transfer and > libusb_interrupt_transfer functions. These functions don't receive any > interface related information in their parameters, so, which interface > they will send/r