Clear the halt/stall condition for an endpoint.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static int ClearHalt( MonoUsbDeviceHandle deviceHandle, byte endpoint )
Public Shared Function ClearHalt ( _ deviceHandle As MonoUsbDeviceHandle, _ endpoint As Byte _ ) As Integer
public: static int ClearHalt( [InAttribute] MonoUsbDeviceHandle^ deviceHandle, unsigned char endpoint )
Parameters
- deviceHandle (MonoUsbDeviceHandle)
- A device handle.
- endpoint (Byte)
- The endpoint to clear halt status.
Return Value
- 0 on success
- ErrorNotFound if the endpoint does not exist
- ErrorNoDevice if the device has been disconnected
- another MonoUsbError code on other failure
Remarks
Endpoints with halt status are unable to receive or transmit data until the halt condition is stalled.
You should cancel all pending transfers before attempting to clear the halt condition.
This is a blocking function.
Note:
Member documentation was originally generated using the Libusb-1.0 API documentation:
Device handling and enumeration