---
title: clearStall()
framework: iousbhost
role: symbol
role_heading: Instance Method
path: iousbhost/iousbhostpipe/clearstall()
---

# clearStall()

Clears the halt condition of the pipe.

## Declaration

```swift
func clearStall() throws
```

## Discussion

Discussion When a bulk or interrupt USB endpoint encounters any input/output error other than a timeout, it transitions to a halted state. It must also clear to perform additional input/output requests on the endpoint. This method clears the halted condition for the endpoint. It also sends a CLEAR_TT_BUFFER control request (See USB 2.0, 11.24.2.3.) to an intermediate hub, if necessary. All pending input/output requests on the endpoint abort, and the data toggle for the endpoint resets.

## See Also

### Sending Bulk and Interrupt I/O

- [IOUSBHostCompletionHandler](iousbhost/iousbhostcompletionhandler.md)
- [IOUSBHostDefaultControlCompletionTimeout](iousbhost/iousbhostdefaultcontrolcompletiontimeout.md)
- [enqueueIORequest(with:completionTimeout:completionHandler:)](iousbhost/iousbhostpipe/enqueueiorequest(with:completiontimeout:completionhandler:).md)
