USBD_DrvEP_Stall

USBD_DrvEP_Stall

Description

Set or clear stall condition on endpoint.

Files

Every device driver’s usbd_drv.c

Prototype

static CPU_BOOLEAN USBD_DrvEP_Stall (USBD_DRV *p_drv, CPU_INT08U ep_addr, CPU_BOOLEAN state);

 

Arguments

p_drv

Pointer to USB device driver structure.

ep_addr

Endpoint address.

state

Endpoint stall state.

Returned Value

DEF_OK, if NO error(s).

DEF_FAIL, otherwise.

Callers

USB device core layer.

Notes / Warnings

None.