On 8/10/07, Dan Streetman <[EMAIL PROTECTED]> wrote:
> On 8/10/07, Islam Beltagy <[EMAIL PROTECTED]> wrote:
> > I have another question. One parameter of Isochronous transfer is "Packet
> > Size" or "Number Of Packets". Can it simply be the maximum packet size of
> > the endpoint or it should be specified by the user of the library? and if it
> > should be specified by the user, Where is it in Javax.Usb ?  In Libusb, it
> > is specified by the user of the library.
>
> See the submission of a List of UsbIrps to see how to group
> submissions like this.  See the Linux implementation also,
> LinuxIsochronousRequest and LinuxIsochronousPipeImp.  The number of
> UsbIrps in the List is the "Number of Packets" and each UsbIrp's data
> length is the "Packet Size".

In case it isn't clear, for single-UsbIrp submissions the "Number of
Packets" is 1 and the "Packet Size" is the UsbIrp's data length.

Also, when I say "data length" I specifically mean UsbIrp.getLength()
not UsbIrp.getData().length - they are not the same thing.  And of
course you can't just grab UsbIrp.getData() either you have to use
UsbIrp.getOffset() also.  You probably know all that already, just
thought I'd point it out.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to