Re: Send Multiple URB's to USB Host driver in Bulk Mode



Now if the FPGA sends a PKTEND (that is an empty USB packet), in my
EvCompleteRequest callback for a USB Request, i'll detect this
condition, and so i'll complete IRP. The problem is that I've up to 7
pending Usb Request, and that if they are executed, then these requests
will receive data from a new frame. How should I do it ?

Maintain the pointer array of all URB IRPs sent down.

In the completion routine, find this IRP by pointer in the array. If this IRP
was the end-of-frame IRP (I assume it should have Irp->IoStatus.Information ==
0 ) - then mark that the next IRP in the array is the start of the new frame.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

.