On Tue, Mar 18, 2003 at 11:39:42AM +0100, Wim Heirman wrote:
> Hello,
> 
> I'm writing a driver for a data aquisition device based on the FX2. The
> device is generating packets of different sizes. I'd like to have a function
> that reads all data that's available and return as quickly as possible
> (something like recv() for socket operations actually, ideally it should
> return after the first NAK of the device).
> I can do this at the moment by doing a usb_submit_urb() for 512 bytes
> repeatedly, but then you only get to transfer one packet per microframe even
> if the device has more than that in it's internal buffers, so this is not
> the most efficient method. Would there be a better method of doing this? The
> data returned is structured in 16-byte packets, so I don't need to know the
> packet boundaries.

Have you tried submitting more than one read urb?  That might work out
for you.

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to