USBD_EP_RxZLP

Description

Receives zero-length packet from the host.

Files

usbd_core.h/usbd_ep.c

Prototype

void  USBD_EP_RxZLP (CPU_INT08U   dev_nbr,
                     CPU_INT08U   ep_addr,
                     CPU_INT16U   timeout_ms,
                     USBD_ERR    *p_err);


Arguments

dev_nbr

Device number.

ep_addr

Endpoint address.

timeout_ms

Timeout in milliseconds.

p_err

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

USBD_ERR_OS_NONE
USBD_ERR_DEV_INVALID_NBR
USBD_ERR_EP_INVALID_ADDR
USBD_ERR_EP_INVALID_STATE
USBD_ERR_OS_TIMEOUT
USBD_ERR_OS_ABORT
USBD_ERR_OS_FAIL

Returned Value

None.

Callers

Classes.

Notes / Warnings

None.