LibUsbDotNet 2.2.8
ClearHalt Method (deviceHandle, endpoint)
Library Reference ► MonoLibUsb ► MonoUsbApi ► ClearHalt(MonoUsbDeviceHandle, Byte)
|
![]() |
Clear the halt/stall condition for an endpoint.

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 )

- deviceHandle (MonoUsbDeviceHandle)
- A device handle.
- endpoint (Byte)
- The endpoint to clear halt status.

- 0 on success
- ErrorNotFound if the endpoint does not exist
- ErrorNoDevice if the device has been disconnected
- another MonoUsbError code on other failure

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.
