ccier wrote:
>
> I want to send the following control transfer:
>
> |r = libusb_control_transfer(handle,
> LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE |
> LIBUSB_ENDPOINT_OUT,
> 0, 0, 3, packet, size, 2000);
> |
>
> However, the USB sniffer always shows the field wIndex as 0 instead of 3.
> The other field of struct libusb_control_setup are correct.
> Only wIndex always shows 0.
>
Have you claimed interface 3? For a Class/Interface request like this,
WinUSB will automatically set the wIndex field to the number of the
interface that you are currently working with.
What request are you trying to send here?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel