On Tue, 24 Sep 2002, shino korah wrote: | I'm using the usb-skelton.c to write a usbdriver for a | USB device. | I want to use usb_control_msg function to read/write | registers. | If I want to read usb control register at 0x80 , how | do I fill in the paarmeter list "request"?
The <request> parameter is described in the USB spec which is available from www.usb.org. In the USB 2.0 spec, in Table 9-3, there is a list of Standard Device Requests. There isn't a standard device request for "read or write a device register." This is a proprietary/vendor-specific request, so you'll need device interface specs or use usbsnoopy on Windows to see what USB traffic makes the device work on Windows. | request_type | =USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_DEVICE | index = address (0x80) | value = parameter to set | request =?? Yes, set request_type as you list here. Index might be 0x80. Do you already know that for sure? For standard device requests, Index is usually an Endpoint or Interface value. Request is vendor-specific in this case. It's not part of the USB spec. -- ~Randy ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
