usb_set_altinterface

libusb Developers Guide
Prev |  | Next

# usb_set_altinterface

## Name

usb_set_altinterface -- Sets the active alternate setting of the current interface

## Description

``int usb_set_altinterface`(usb_dev_handle *dev, int alternate);`

`usb_set_altinterface` sets the active alternate setting of the current interface. The `alternate` parameter is the value as specified in the descriptor field bAlternateSetting. Returns 0 on success or < 0 on error.

Prev | Home | Next
usb_set_configuration | Up | usb_resetep