Name

usb_endpoint_register — Register an enpoint with the USB system.

Synopsis

struct usb_endpoint_s* usb_endpoint_register(struct usb_device_s* act_device, unsigned long point_number, unsigned long type, unsigned long max_data_size, unsigned long frame_repeat, int* result);

Arguments

act_device device
point_number end point number
type transfer type
max_data_size maximum data payload size
frame_repeat Number of frames that must pass until the next requests can be sent/recieved
result pointer to result code

Description

Register an enpoint with the USB system

This call is normally used only internally when a configuration for a device has been set requiring endpoints using this configuration to be established. For every registered device a default pipe must be established.

Return Values

pointer to endpoint

See Also

USB_EndpointRegister (SWI &55380)