USBD_EP_Stall

Description

Modify stall state condition on non-control endpoints.

Files

usbd_core.h/usbd_ep.c

Prototype

void  USBD_EP_Stall (CPU_INT08U    dev_nbr,
                     CPU_INT08U    ep_addr,
                     CPU_BOOLEAN   state,
                     USBD_ERR     *p_err)


Arguments

dev_nbr

Device number.

ep_addr

Line control change notification callback (see note #1).

state

Endpoint stall state.

ValueStall state
DEF_SET
Set
DEF_CLR
Clear

p_err

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

USBD_ERR_NONE
USBD_ERR_DEV_INVALID_ARG
USBD_ERR_EP_INVALID_ADDR
USBD_ERR_EP_INVALID_STATE
USBD_ERR_EP_STALL
USBD_ERR_EP_ABORT
USBD_ERR_OS_FAIL

Returned Value

None.

Callers

Classes.

Notes / Warnings

None.