openusb_get_configuration, openusb_set_configuration
openusb_get_configuration, openusb_set_configuration
-- Get the current bConfigurationValue of a device,
Set a device's bConfigurationValueopenusb_get_configuration()
gets the current active configuration
value of the device specified by dev. The bConfigurationValue is returned in
cfg
.
openusb_set_configuration
() sets a device's bConfigurationValue
to cfg
.
openusb_get_configuration
() or openusb_set_configuration
() returns 0 on success. Otherwise, a openusb error is returned.
OPENUSB_SUCCESS No errors.
OPENUSB_BADARG cfg
is an invalid address for openusb_get_configuration(), or not a valid bConfigurationValue for openusb_set_configuration()
OPENUSB_UNKNOWN_DEVICE Device handle is not valid