GORAN RADIVOJEVIC wrote:
>
> I made typo error: my USB device have only one interface with one
> Alternate settings (my first attempt was
> HID+Vendor, HID part working correctly). At the moment I don't have
> CPU card (only bare motherboard) so
> I can't send you exact Xusb.exe printout. I hope in the next few days
> spare CPU card will be returned to me.
> In the meanwhile I have question about exact procedure to activate
> Vendor class. Is this correct order:
> 1. find device by VID and PID;
> 2. claim interface;
> 3. set configuration (is this step necessary?);
> 4. set Alt. configuration;
> 5. send/receive data through endpoints.

Setting the configuration determines what the interfaces are, so if you
do SetConfiguration, you must do that before claiming the interface. 
There is no such thing as an "alternate configuration".  Claiming the
interface will set alternate setting #0, so you only need to set the
alternate setting number if you have more than one, and you will
(almost) never have more than one unless you have isochronous pipes.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to