.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "USB_CALC_BUS_TIME" "" "06 October 2005" "" ""
.SH NAME
usb_calc_bus_time \- approximate periodic transaction time in nanoseconds
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
long usb_calc_bus_time (int \fIspeed\fB, int \fIis_input\fB, int \fIisoc\fB, int \fIbytecount\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIspeed\fB\fR
from dev->speed; USB_SPEED_{LOW,FULL,HIGH}
.TP
\fB\fIis_input\fB\fR
true iff the transaction sends data to the host
.TP
\fB\fIisoc\fB\fR
true for isochronous transactions, false for interrupt ones
.TP
\fB\fIbytecount\fB\fR
how many bytes in the transaction.
.SH "DESCRIPTION"
.PP
Returns approximate bus time in nanoseconds for a periodic transaction.
See USB 2.0 spec section 5.11.3; only periodic transfers need to be
scheduled in software, this function is only used for such scheduling.