sunny3346
驱动牛犊
驱动牛犊
  • 注册日期2002-05-09
  • 最后登录2002-05-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1478回复:7

question about develop usb device driver

楼主#
更多 发布于:2002-05-17 13:21
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
vcmfc
驱动中牛
驱动中牛
  • 注册日期2001-03-23
  • 最后登录2008-01-28
  • 粉丝0
  • 关注0
  • 积分528分
  • 威望53点
  • 贡献值0点
  • 好评度52点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-05-17 13:54
reference walter oney \"Programming the Microsoft Window Driver Model\"chapter 11:USB
sunny3346
驱动牛犊
驱动牛犊
  • 注册日期2002-05-09
  • 最后登录2002-05-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-05-20 08:51
很抱歉,因手钷上
tigerzd
驱动老牛
驱动老牛
  • 注册日期2001-08-25
  • 最后登录2004-12-13
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于: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!
犯强汉者,虽远必诛! [img]http://www.driverdevelop.com/forum/upload/tigerzd/2002-12-13_sf10.JPG[/img]
sunny3346
驱动牛犊
驱动牛犊
  • 注册日期2002-05-09
  • 最后登录2002-05-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-05-21 11:48
著著你的建阻
但我的ddk src\\
tigerzd
驱动老牛
驱动老牛
  • 注册日期2001-08-25
  • 最后登录2004-12-13
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2002-05-21 15:08
1、你是用2000DDK吗?在NTDDK\\SRC\\WDM\\VIDEOCAP中,它使用USBD_CreateConfigurationRequestEx调用。
2、没有函数,只能通过构造相应的URB来实现。
犯强汉者,虽远必诛! [img]http://www.driverdevelop.com/forum/upload/tigerzd/2002-12-13_sf10.JPG[/img]
sunny3346
驱动牛犊
驱动牛犊
  • 注册日期2002-05-09
  • 最后登录2002-05-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2002-05-21 15:48
1.我是用winddk ver 2600(for xp) 所以找不到你真的sample
USBD_Getconfiguratinrequestex()
xuyingpin
驱动牛犊
驱动牛犊
  • 注册日期2002-11-25
  • 最后登录2008-06-29
  • 粉丝0
  • 关注0
  • 积分180分
  • 威望18点
  • 贡献值0点
  • 好评度18点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2002-11-27 20:40
虽然隔了很久,我也有这样的疑问,没有set_address对应的urb嘛,所以我就自己做了一个urb_function_set_address,因为我看linux里有类似的urb
http://xuyingpin.blogcn.com
游客

返回顶部