/// <summary> /// Cancels pending transfers and clears the halt condition on an enpoint. /// </summary> /// <returns>True on success.</returns> public override bool Reset() { if (IsDisposed) { throw new ObjectDisposedException(GetType().Name); } Abort(); int ret = MonoUsbApi.ClearHalt((MonoUsbDeviceHandle)Device.Handle, EpNum); if (ret < 0) { MonoUsbErrorMessage.Error(ErrorCode.MonoApiError, ret, "Endpoint Reset Failed", this); return(false); } return(true); }