byteman_wang
驱动牛犊
驱动牛犊
  • 注册日期2008-06-30
  • 最后登录2008-11-06
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望6点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1318回复:2

求救,中断传输的问题

楼主#
更多 发布于:2008-10-30 11:45
公司需要开发一个usb的采集系统,我想用中断传输的方式向设备端发送控制命令,这个函数UsbBuildGetInterruptOrBulkTransferRequest可以产生一个中断传输的urb,但是我看它里面的一个参数

TransferFlags
Specifies zero, one, or a combination of the following flags:
USBD_TRANSFER_DIRECTION_IN
Is set to request data from a device. To transfer data to a device, this flag must be clear. The flag must be set if the pipe is an interrupt transfer pipe.
USBD_SHORT_TRANSFER_OK
Can be used if USBD_TRANSFER_DIRECTION_IN is set. If set, directs the HCD not to return an error if a packet is received from the device that is shorter than the maximum packet size for the endpoint. Otherwise, a short request is returns an error condition.
好像说对于中断传输只能接收数据,不能发送数据?The flag must be set if the pipe is an interrupt transfer pipe.
怎么回事啊?
gutian98
禁止发言
禁止发言
  • 注册日期2003-01-12
  • 最后登录2016-12-11
  • 粉丝4
  • 关注2
  • 积分760分
  • 威望8026点
  • 贡献值1点
  • 好评度364点
  • 原创分0分
  • 专家分21分
  • 金点子奖
  • 社区居民
沙发#
发布于:2008-10-30 18:05
用户被禁言,该主题自动屏蔽!
byteman_wang
驱动牛犊
驱动牛犊
  • 注册日期2008-06-30
  • 最后登录2008-11-06
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望6点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2008-11-06 08:39
我看中断传输每个事务也只能最大传64字节啊?
游客

返回顶部