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 ...
Have you tried submitting more than one read urb? That might work out for you.
In fact, if it doesn't, let us know ... I'd say that'd be the "right" way to solve this problem! Each endpoint has a queue of requests; when one completes, the next starts. Your device should be NAKing if there's no more data available, and otherwise satisfying the request. Just make sure to keep a deep enough queue.
And there might be some OS differences to pay attention to. The 2.5 kernels queue all transfer types, but on 2.4 some HCDs won't queue interrupt or control transfers (and for UHCI you need to use a special URB flag).
- Dave
-------------------------------------------------------
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
