usb_d_ep_transfer

Endpoint transfer.

int32_t usb_d_ep_transfer(
    const struct usb_d_transfer * xfer
)

For control endpoints, start the transfer according to the direction in the bmRequest type, and finish with STATUS stage. For non-control endpoints, the transfer will be unique direction. Defined by bit 8 of the endpoint address.

Parameters

xfer

Type: const struct usb_d_transfer *

Pointer to the transfer description.

Returns

Type: int32_t

Operation status.

0

Success.

<0

Error code.