hora
游客
游客
阅读:1704回复:3

疑惑????

楼主#
更多 发布于:2001-04-19 15:39
usb规范chapter 9 中描述了很多usb device requests什么clear feature,get configuration set address 等等,好像都是些2进制数据,但是我看了很多usb例子,里面没有跟那些描述符有关的函数,这一章对客户驱动程序的编写起什么用?这些跟endpoint、interface等有关的函数或是其他变量什么的在驱动程序的哪一部分?
hhcn
驱动牛犊
驱动牛犊
  • 注册日期2001-07-13
  • 最后登录
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2001-07-18 12:07
谢谢
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2001-04-27 08:31
DriverWorks, USBTherm,File:UsbThermometer.cpp, Line:490,有一句:
// allocate and initialize an URB, and store the pointer in the context structure
pCompInfo->m_pUrb =
m_Usb.BuildVendorRequest(
pCompInfo->m_buffer, // transfer buffer
8, // transfer buffer size
0, // request reserved bits
2, // request
offset, // Value
TRUE, // In
FALSE, // Short Ok
NULL, // link urb
0, // index
URB_FUNCTION_VENDOR_ENDPOINT // function
);
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
地板#
发布于:2001-04-24 08:54
这些都不是USB Client Driver需要管的,系统的driver自己会处理的,你只可以得到这些信息,但(好像)不能更改.你的client driver只要负责处理vendor指令就可以了.
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
游客

返回顶部