SetConfiguration(IOService *, UInt8, bool)
Declaration
virtual IOReturn SetConfiguration(
IOService *forClient,
UInt8 configValue,
bool startInterfaceMatching=true);Parameters
- forClient:
The client requesting the configuration change
- configValue:
The desired configuration value.
- startInterfaceMatching:
A boolean specifying whether IOKit should begin the process of finding matching drivers for the new IOUSBInterface objects.
Overview
Do a USB SetConfiguration call to the device. The caller must have the device open() in order to actually cause a configuration change. If the device is currently configured, all IOUSBInterface objects associated with the device are freed. After the new configuration has been set, all of its IOUSBInterface objects are instantiated automatically.
See Also
Miscellaneous
CreateInterfaceIteratorDeviceRequest(IOUSBDevRequest *, UInt32, UInt32, IOUSBCompletion *)DeviceRequest(IOUSBDevRequestDesc *, UInt32, UInt32, IOUSBCompletion *)DisplayUserNotificationDoLocationOverrideAndModelMatchFindNextInterfaceFindNextInterfaceDescriptorGetAddressGetBusGetBusPowerAvailableGetChildLocationIDGetConfigurationGetConfigurationDescriptorGetDeviceInformationGetDeviceReleaseGetDeviceStatusGetExtraPowerAllocatedGetFullConfigurationDescriptorGetHubParentGetManufacturerStringIndexGetMaxPacketSizeGetNumConfigurationsGetPipeZeroGetProductIDGetProductStringIndexGetSerialNumberStringIndexGetSpeedGetStringDescriptorGetVendorIDMakePipeOpenOrCloseAllInterfacePipesReEnumerateDeviceRequestExtraPowerResetDeviceReturnExtraPowerSetAddressSetConfiguration(IOService *, UInt8, bool, bool)SetHubParentSuspendDevice