阅读:1480回复:7
question about develop usb device driver
Hi,dear all,
I am developing the usb device driver. I have some questions for your kind help. 1.I want to use ddk\'s urb_function_get_configuration to get the current configuration index. According to ddk, I need to give the parameters of urbControlGetConfigurationRequest \'s header function,header size,Transferbuffersize and Transferbuffer. But ther result is in vain. ddk said the urb_function_get_configuration is a reserved function(in usbdi.h). Does anyone can share with me how to get the current configuration index and current alternatesetting index? 2.Can USB device driver call the set address or synch frame command to usbd driver ? Thanks for your help Sunny |
|
沙发#
发布于:2002-11-27 20:40
虽然隔了很久,我也有这样的疑问,没有set_address对应的urb嘛,所以我就自己做了一个urb_function_set_address,因为我看linux里有类似的urb
|
|
|
板凳#
发布于:2002-05-21 15:48
1.我是用winddk ver 2600(for xp) 所以找不到你真的sample
USBD_Getconfiguratinrequestex() |
|
地板#
发布于:2002-05-21 15:08
1、你是用2000DDK吗?在NTDDK\\SRC\\WDM\\VIDEOCAP中,它使用USBD_CreateConfigurationRequestEx调用。
2、没有函数,只能通过构造相应的URB来实现。 |
|
|
地下室#
发布于:2002-05-21 11:48
著著你的建阻
但我的ddk src\\ |
|
5楼#
发布于:2002-05-20 13:26
1、you can see this sample DDK\\SRC\\VIDEOCAP\\USBCAMD, please attention these functions:
USBCAMD_ConfigureDevice, USBCAMD_SelectConfiguration, USBCAMD_SelectAlternateInterface. 2、USB driver can submit set address or synch frame,but wheather it can be successful is depend on the device. Good luck! |
|
|
6楼#
发布于:2002-05-20 08:51
很抱歉,因手钷上
|
|
7楼#
发布于:2002-05-17 13:54
reference walter oney \"Programming the Microsoft Window Driver Model\"chapter 11:USB
|
|