MPLAB Harmony USB Stack
|
This function clear the stall on an endpoint in the specified direction.
void USB_DEVICE_EndpointStallClear( 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.
None.
// This code example shows how to clear a stall on an // endpoint. In this case, the stall on endpoint 1 IN direction is // cleared. USB_ENDPOINT_ADDRESS ep; ep = USB_ENDPOINT_AND_DIRECTION(USB_DATA_DIRECTION_DEVICE_TO_HOST, 1); USB_DEVICE_EndpointStallClear(usbDeviceHandle, ep);
MPLAB Harmony USB Stack
|