阅读:1088回复:1
求教多个URB问题
各位大侠:小可做了一个USB驱动
如果想在一次应用程序IO请求就发送两个URB到总线驱动 不知道各位谁坐过没有 有的话具体告知一下 最好有简约代码说明 谢谢谢谢大家 例如以下代码是发送一个URB PURB pUrb = m_Endpoint6IN.BuildBulkTransfer( pBuffer, // Where is data coming from? dwTotalSize, // How much data to read? TRUE, // direction (TRUE = IN) NULL, // Link to next URB FALSE // Allow a short transfer ); if (pUrb == NULL) { I.Information() = 0; return I.PnpComplete(this, STATUS_INSUFFICIENT_RESOURCES); } // Submit the URB to our USB device status = m_Endpoint6IN.SubmitUrb(pUrb, NULL, NULL, m_timerout);//最后一个参数表示时间,如果多少 |
|
沙发#
发布于:2009-01-09 08:47
分割多个URB,安排好缓冲区就OK了
|
|