Hi,

I'm using v2.4.18 (Slackware 8.1) and usb-uhci.

I have some questions about URBs. These are pretty basic, but I'm very new to 
Linux and device drivers, and I can't find these info in urb.txt, or in this 
list (does the list have a search function)?

1. I'd like to write some data to the bulk out endpoint. If wMaxPacketSize is 
64, and I'd like to write, say, 200 bytes, can I just set the urb's 
buffer_length to 200? Does the USB core automatically segment the data to 64-
byte chunks?

2. Is the same with interrupt out?

3. I'd like to read some data from the bulk in endpoint. If I submit an URB 
with a buffer size of 2000 bytes, how much data do I get every time my complete 
function is called? I'm assuming it's every time the USB core receives a 
bulk "packet" (max of 64 bytes = bulk in endpoint's wMaxPacketSize), and NOT 
when the buffer has accumulated 2000 bytes.. Is this correct?

4. Same question as 3, this time with interrupt in. If wMaxPacketSize for the 
interrupt in endpoint is 8 bytes, does my interrupt complete function get 
called every time an interrupt "packet" is received (even if I specify, say, a 
2000-byte buffer)?

I also have a question on the USB specs. What's the difference between data0 
and data1? I read something that data0 is even, and data1 is odd.. what does 
this mean?

Thanks!

-- Ronald


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to