/
USBD_EP_MaxPktSizeGet

USBD_EP_MaxPktSizeGet

Description

Retrieves endpoint’s maximum packet size

Files

usbd_core.h/usbd_ep.c

Prototype

CPU_INT16U  USBD_EP_MaxPktSizeGet (CPU_INT08U   dev_nbr,
                                   CPU_INT08U   ep_addr,
                                   USBD_ERR    *p_err);


Arguments

dev_nbr

Device number.

ep_addr

Endpoint address.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_DEV_INVALID_NBR
USBD_ERR_EP_INVALID_ADDR
USBD_ERR_EP_INVALID_STATE

Returned Value

Maximum packet size, If no error(s).

0, otherwise.

Callers

Application.

Notes / Warnings

None.