1CONFIG_EP_BY_SPEED(9)       Kernel Mode Gadget API       CONFIG_EP_BY_SPEED(9)
2
3
4

NAME

6       config_ep_by_speed - configures the given endpoint according to gadget
7       speed.
8

SYNOPSIS

10       int config_ep_by_speed(struct usb_gadget * g, struct usb_function * f,
11                              struct usb_ep * _ep);
12

ARGUMENTS

14       g
15           pointer to the gadget
16
17       f
18           usb function
19
20       _ep
21           the endpoint to configure
22

RETURN

24       error code, 0 on success
25
26       This function chooses the right descriptors for a given endpoint
27       according to gadget speed and saves it in the endpoint desc field. If
28       the endpoint already has a descriptor assigned to it - overwrites it
29       with currently corresponding descriptor. The endpoint maxpacket field
30       is updated according to the chosen descriptor.
31

NOTE

33       the supplied function should hold all the descriptors for supported
34       speeds
35

AUTHOR

37       David Brownell <dbrownell@users.sourceforge.net>
38           Author.
39
41Kernel Hackers Manual 3.10         June 2019             CONFIG_EP_BY_SPEED(9)
Impressum