Description
Modify stall state condition on non-control endpoints.
Files
usbd_core.h/usbd_ep.c
Prototype
Arguments
dev_nbr
Device number.
ep_addr
Line control change notification callback (see note #1).
state
Endpoint stall state.
Value | Stall 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.