other versions
CONFIG_EP_BY_SPEED(9) | Kernel Mode Gadget API | CONFIG_EP_BY_SPEED(9) |
NAME¶
config_ep_by_speed - configures the given endpoint according to gadget speed.SYNOPSIS¶
int config_ep_by_speed(struct usb_gadget * g, struct usb_function * f, struct usb_ep * _ep);
ARGUMENTS¶
struct usb_gadget * gpointer to the gadget
struct usb_function * f
usb function
struct usb_ep * _ep
the endpoint to configure
RETURN¶
error code, 0 on successThis function chooses the right descriptors for a given endpoint according to gadget speed and saves it in the endpoint desc field. If the endpoint already has a descriptor assigned to it - overwrites it with currently corresponding descriptor. The endpoint maxpacket field is updated according to the chosen descriptor.
NOTE¶
the supplied function should hold all the descriptors for supported speedsAUTHOR¶
David Brownell <dbrownell@users.sourceforge.net>Author.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |