寂寞幽忧子
驱动牛犊
驱动牛犊
  • 注册日期2003-07-19
  • 最后登录2004-07-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1523回复:1

FX2设备应用程序调用IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST的问题。

楼主#
更多 发布于:2004-07-09 15:36
typedef struct _VENDOR_OR_CLASS_REQUEST_CONTROL
{
  // transfer direction (0=host to device, 1=device to host)
  UCHAR direction;

  // request type (1=class, 2=vendor)
  UCHAR requestType;

  // recipient (0=device,1=interface,2=endpoint,3=other)
  UCHAR recepient;
  //
  // see the USB Specification for an explanation of the
  // following paramaters.
  //
  UCHAR requestTypeReservedBits;
  UCHAR request;
  USHORT value;
  USHORT index;
} VENDOR_OR_CLASS_REQUEST_CONTROL, *PVENDOR_OR_CLASS_REQUEST_CONTROL;

我是在VC6下基于做GPD做的应用程序
这个控制代码的部分:
 // see the USB Specification for an explanation of the
  // following paramaters.
  //
  UCHAR requestTypeReservedBits;
  UCHAR request;
  USHORT value;
  USHORT index;
没有详细解释怎么回事.我去查看USB 2.0的SPEcification也没有找到,谁可以提供一下这几个量的用法设置。
我是用来发往固件的厂商自定义请求,recipient 应该是哪一个呢?(0=device,1=interface,2=endpoint,3=other)
c_tony
驱动牛犊
驱动牛犊
  • 注册日期2004-08-11
  • 最后登录2011-12-30
  • 粉丝2
  • 关注1
  • 积分132分
  • 威望15点
  • 贡献值0点
  • 好评度13点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2007-03-27 13:00
0x01 Recipient
:”“: : : ::::
游客

返回顶部