usb_d_ep_enable

Enabled the initialized endpoint.

int32_t usb_d_ep_enable(
    const uint8_t ep
)

Setup request will be monitored after enabling a control endpoint.

Parameters

ep

Type: const uint8_t

The endpoint address.

Returns

Type: int32_t

Operation status.

0

Success.

<0

Error code.