1USB_CALC_BUS_TIME(9)         Host Controller APIs         USB_CALC_BUS_TIME(9)
2
3
4

NAME

6       usb_calc_bus_time - approximate periodic transaction time in
7       nanoseconds
8

SYNOPSIS

10       long usb_calc_bus_time(int speed, int is_input, int isoc,
11                              int bytecount);
12

ARGUMENTS

14       speed
15           from dev->speed; USB_SPEED_{LOW,FULL,HIGH}
16
17       is_input
18           true iff the transaction sends data to the host
19
20       isoc
21           true for isochronous transactions, false for interrupt ones
22
23       bytecount
24           how many bytes in the transaction.
25

DESCRIPTION

27       Returns approximate bus time in nanoseconds for a periodic transaction.
28       See USB 2.0 spec section 5.11.3; only periodic transfers need to be
29       scheduled in software, this function is only used for such scheduling.
30
32Kernel Hackers Manual 2.6.         June 2019              USB_CALC_BUS_TIME(9)
Impressum