usb_resetep

libusb Developers Guide
Prev |  | Next

# usb_resetep

## Name

usb_resetep -- Resets state for an endpoint

## Description

``int usb_resetep`(usb_dev_handle *dev, unsigned int ep);`

`usb_resetep` resets all state (like toggles) for the specified endpoint. The `ep` parameter is the value specified in the descriptor field bEndpointAddress. Returns 0 on success or < 0 on error.

> Deprecated: `usb_resetep` is deprecated. You probably want to use usb_clear_halt.

Prev | Home | Next
usb_set_altinterface | Up | usb_clear_halt