SetConfiguration(IOService *, UInt8, bool, bool)
Declaration
virtual IOReturn SetConfiguration(
IOService *forClient,
UInt8configValue,
boolstartInterfaceMatching,
boolissueRemoteWakeup);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
- issueRemoteWakeup:
A boolean specifying whether we should issue the SetFeature(kUSBFeatureDeviceRemoteWakeup) immediately after setting the configuration, before loading any drivers. 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)SetHubParentSuspendDevice