usb_d_ep_get_req

Get request data pointer to access received setup request packet.

uint8_t* usb_d_ep_get_req(
    const uint8_t ep
)

Parameters

ep

Type: const uint8_t

The endpoint address.

Returns

Type: uint8_t *

Pointer to the request data.

NULL

The endpoint is not a control endpoint.