39.1.3.14 usb_d_ep_init
Initialize the endpoint.
int32_t usb_d_ep_init(
const uint8_t ep,
const uint8_t attr,
const uint16_t max_pkt_size
)
Parameters
- ep
-
Type: const uint8_t
The endpoint address.
- attr
-
Type: const uint8_t
The endpoint attributes.
- max_pkt_size
-
Type: const uint16_t
Max. packet size of EP0.
Returns
Type: int32_t
Operation status.
- 0
-
Success.
- <0
-
Error code.