config_ep_by_speed_and_alt — configures the given endpoint according to gadget speed.
int config_ep_by_speed_and_alt ( | struct usb_gadget * g, |
| struct usb_function * f, | |
| struct usb_ep * _ep, | |
u8 alt); |
gpointer to the gadget
fusb function
_epthe endpoint to configure
altalternate setting number
error code, 0 on success
This 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.