libusb Developers Guide
Prev |  | Next

# usb_set_configuration

## Name

usb_set_configuration -- Sets the active configuration of a device

## Description

``int usb_set_configuration` (usb_dev_handle *dev); int configuration);`

`usb_set_configuration` sets the active configuration of a device. The `configuration` parameter is the value as specified in the descriptor field bConfigurationValue. Returns 0 on success or 0 on error.

Prev | Home | Next
usb_close | Up | usb_set_altinterface