GetExtraPowerAllocated
Clients can use this API to ask how much extra power has already been reserved by this device. Units are milliAmps (mA).
Declaration
virtual UInt32 GetExtraPowerAllocated(
UInt32type);Parameters
- type:
Indicates whether the allocated power was to be used during wake or sleep (One of kUSBPowerDuringSleep or kUSBPowerDuringWake)
Return Value
Amount of power allocated, in mA.
See Also
Miscellaneous
CreateInterfaceIteratorDeviceRequest(IOUSBDevRequest *, UInt32, UInt32, IOUSBCompletion *)DeviceRequest(IOUSBDevRequestDesc *, UInt32, UInt32, IOUSBCompletion *)DisplayUserNotificationDoLocationOverrideAndModelMatchFindNextInterfaceFindNextInterfaceDescriptorGetAddressGetBusGetBusPowerAvailableGetChildLocationIDGetConfigurationGetConfigurationDescriptorGetDeviceInformationGetDeviceReleaseGetDeviceStatusGetFullConfigurationDescriptorGetHubParentGetManufacturerStringIndexGetMaxPacketSizeGetNumConfigurationsGetPipeZeroGetProductIDGetProductStringIndexGetSerialNumberStringIndexGetSpeedGetStringDescriptorGetVendorIDMakePipeOpenOrCloseAllInterfacePipesReEnumerateDeviceRequestExtraPowerResetDeviceReturnExtraPowerSetAddressSetConfiguration(IOService *, UInt8, bool)SetConfiguration(IOService *, UInt8, bool, bool)SetHubParentSuspendDevice