/
USBDev_PipeStall
USBDev_PipeStall
Description
Stall a pipe or clear the stall condition of a pipe.
Files
usbdev_api.c
Prototype
void USBDev_PipeStall (HANDLE pipe, BOOL stall, DWORD *p_err);
Arguments
pipe
Pipe handle.
stall
Indicate which action to do:
TRUE
Stall pipe.
FALSE
Clear stall condition of the pipe.
p_err
Pointer to variable that will receive the return error code from this function:
ERROR_SUCCESS
ERROR_INVALID_HANDLE
ERROR_NOT_ENOUGH_MEMORY
Returned Value
None.
Callers
Application.
Notes / Warnings
The SET_FEATURE
standard request is sent to the device to stall the pipe. The CLEAR_FEATURE
standard request is sent to the device to clear the stall condition of the pipe.
Related content
USBDev_PipeAbort
USBDev_PipeAbort
More like this
USBDev_PipeWr
USBDev_PipeWr
More like this
USBD_EP_Stall
USBD_EP_Stall
More like this
USBDev_PipeWrExt
USBDev_PipeWrExt
More like this
USBDev_PipeRd
USBDev_PipeRd
More like this
USBDev_PipeClose
USBDev_PipeClose
More like this