|
From: Stephan M. <Ste...@ia...> - 2006-04-05 07:42:39
|
Vendor requests are implemented.
From windows.c (version 0.1.10.1):
case USB_TYPE_VENDOR:
case USB_TYPE_CLASS:
req.vendor.type = (requesttype >> 5) & 0x03;
req.vendor.recipient = requesttype & 0x1F;
req.vendor.request = request;
req.vendor.value = value;
req.vendor.index = index;
....
> I need to create a small wrapper in c that interfaces between a USB
> device via libusb-win32 and a .NET program. One problem I've just found
> is that it appears that vendor requests are not implemented in
> libusb-win32. Is this true? In windows.c: usb_control_msg() { case
> USB_TYPE_VENDOR: } is empty. Some code that one of my partners wrote
> using the linux libusb sends a vendor request like so:
>
> retval = usb_control_msg (curHandle, USB_TYPE_VENDOR |
USB_RECIP_DEVICE
> | USB_ENDPOINT_IN, request, value, index,
> buf, size, USB_TIMEOUT);
>
> Is it possible to do this in libusb-win32 as it is, or does this ability
> need to be added. I have the win DDK and am trying to grok its ioctl
> stuff, but I'm new to this. Any tips?
>
> T
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
> that extends applications into web and mobile media. Attend the live
webcast
> and join the prime developer group breaking into this new coding
territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
|