On Sat, 30 Mar 2013, Wander Lairson Costa wrote:

> 2013/3/29 Alan Stern <st...@rowland.harvard.edu>:
> > 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/receive data to/from?
> >
> > They _do_ receive interface-related information in their parameters:
> > the endpoint address.  Each endpoint belongs to a single interface.
> >
> 
> You mean, I cannot have endpoint 1 both on interface 0 and interface
> 1? I was not aware of that.

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
        of the same interface.  Endpoints may be shared among 
        interfaces that are part of different configurations without 
        this restriction.

Alan Stern


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to