|
From: Thomas S. <th...@th...> - 2006-04-05 09:00:04
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<newbie>Oh, I see, thanks. The USB_TYPE_CLASS case handles both.
</newbie>.<br>
<br>
T<br>
<br>
Stephan Meyer wrote:
<blockquote
cite="mid...@re..."
type="cite"><br>
<font size="2"><tt><br>
Vendor requests are implemented.</tt></font>
<br>
<font size="2"><tt>From windows.c (version 0.1.10.1):</tt></font>
<br>
<br>
<font size="2"><tt> case USB_TYPE_VENDOR: </tt></font>
<br>
<font size="2"><tt> case USB_TYPE_CLASS:</tt></font>
<br>
<br>
<font size="2"><tt> req.vendor.type = (requesttype
>> 5) & 0x03;</tt></font>
<br>
<font size="2"><tt> req.vendor.recipient = requesttype
& 0x1F;</tt></font>
<br>
<font size="2"><tt> req.vendor.request = request;</tt></font>
<br>
<font size="2"><tt> req.vendor.value = value;</tt></font>
<br>
<font size="2"><tt> req.vendor.index = index;</tt></font>
<br>
<br>
<font size="2"><tt>....</tt></font>
<br>
<br>
<br>
<font size="2"><tt><br>
> I need to create a small wrapper in c that interfaces between a USB<br>
> device via libusb-win32 and a .NET program. One problem I've
just found<br>
> is that it appears that vendor requests are not implemented in<br>
> libusb-win32. Is this true? In windows.c: usb_control_msg()
{ case<br>
> USB_TYPE_VENDOR: } is empty. Some code that one of my
partners wrote<br>
> using the linux libusb sends a vendor request like so:<br>
> <br>
> retval = usb_control_msg (curHandle, USB_TYPE_VENDOR |
USB_RECIP_DEVICE<br>
> | USB_ENDPOINT_IN,
request, value, index,<br>
> buf, size,
USB_TIMEOUT);<br>
> <br>
> Is it possible to do this in libusb-win32 as it is, or does this
ability<br>
> need to be added. I have the win DDK and am trying to grok its
ioctl<br>
> stuff, but I'm new to this. Any tips? <br>
> <br>
> T<br>
> <br>
> <br>
> -------------------------------------------------------<br>
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language<br>
> that extends applications into web and mobile media. Attend the
live
webcast<br>
> and join the prime developer group breaking into this new coding
territory!<br>
>
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642</a><br>
> _______________________________________________<br>
> Libusb-win32-devel mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:Lib...@li...">Lib...@li...</a><br>
> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel">https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel</a><br>
</tt></font>
</blockquote>
</body>
</html>
|