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.