MPLAB Harmony USB Stack
|
This function stalls an endpoint in the specified direction.
void USB_DEVICE_EndpointStall( USB_DEVICE_HANDLE usbDeviceHandle, USB_ENDPOINT_ADDRESS endpoint );
Client handle should be valid.
Parameters |
Description |
usbDeviceHandle |
USB device handle returned by USB_DEVICE_Open |
endpoint |
Specifies the endpoint and direction |
None.
The application may typically, not find the need to stall an endpoint. Stalling an endpoint erroneously could potentially make the device non-compliant.
// This code example shows how to stall an endpoint. In // this case, endpoint 1 IN direction is stalled. USB_ENDPOINT_ADDRESS ep; ep = 0x1|USB_EP_DIRECTION_IN; USB_DEVICE_EndpointStall(usbDeviceHandle, ep);
MPLAB Harmony USB Stack
|