4.4.15.3.6 USB_EndpointConfigure()
RETURN_CODE_t USB_EndpointConfigure (USB_PIPE_t pipe, uint16_t endpointSize, USB_ENDPOINT_t endpointType)
Configures the endpoint with the desired settings using the Control and Status Register. Used to set up an endpoint before using it in an application. Sets up all the control register settings by looking up the usb_config.h file and clears the count registers.
pipe |
- A combination of endpoint address and direction |
endpointSize |
- Number of bytes of data supported by the endpoint in one USB transaction |
endpointType |
- Type of USB endpoint as defined by usb_endpoint_type |
SUCCESS or an Error code according to RETURN_CODE_t |