Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-20 Thread Tim Roberts
John Chen wrote: > Tom, > Would you please show me how did you get bmRequestType to value 0xC2. I did this so often that I finally created a "cheat sheet" that I keep in a text file. +---+---+---+---+---+---+---+---+ | d | type | | recip | +---+---+---+---+---+---+---+---+

Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-18 Thread Peter Stuge
John Chen wrote: > Would you please show me how did you get bmRequestType to value 0xC2. Please see the USB 2.0 spec 9.3.1 bmRequestType Table 9-2 page 248. http://www.usb.org/developers/docs/usb_20_10.zip //Peter -

Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-18 Thread John Chen
Tom, Would you please show me how did you get bmRequestType to value 0xC2. Many thanks. John On Mon, Jul 16, 2012 at 5:37 PM, Tim Roberts wrote: > John Chen wrote: > > > I need to convert a legacy app from win api calls to libusbx, most of the > legacy app is using DeviceIoControl , from lib

Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-16 Thread Peter Stuge
John Chen wrote: > I have not touch anything like device driver before, do you have > any good book to recommend? One good resource is the USB 2.0 specification. Study chapters 5, 8, and 9. http://www.usb.org/developers/docs/usb_20_10.zip //Peter ---

Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-16 Thread John Chen
I have not touch anything like device driver before, do you have any good book to recommend? thx On Mon, Jul 16, 2012 at 5:37 PM, Tim Roberts wrote: > John Chen wrote: > > > I need to convert a legacy app from win api calls to libusbx, most of the > legacy app is using DeviceIoControl , from li

Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-16 Thread Tim Roberts
John Chen wrote: > > I need to convert a legacy app from win api calls to libusbx, most of > the legacy app is using DeviceIoControl , from libusbx docs, the I > believe I need to use libusb_control_transfer, but I am not sure how > to change the calls from DeviceIoControl calls to > libusb_control

[Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-16 Thread John Chen
Hi,Gurus, I need to convert a legacy app from win api calls to libusbx, most of the legacy app is using DeviceIoControl , from libusbx docs, the I believe I need to use libusb_control_transfer, but I am not sure how to change the calls from DeviceIoControl calls to libusb_control_transfer as the pa