---
title: IOUSBGetConfigurationMaxPowerMilliAmps
framework: usbdriverkit
role: symbol
role_heading: Function
path: usbdriverkit/iousbgetconfigurationmaxpowermilliamps
---

# IOUSBGetConfigurationMaxPowerMilliAmps

Extracts the maximum bus current a configuration descriptor requires.

## Declaration

```occ
uint32_t IOUSBGetConfigurationMaxPowerMilliAmps(uint32_t usbDeviceSpeed, const IOUSBConfigurationDescriptor *descriptor);
```

## Parameters

- `usbDeviceSpeed`: The operational speed of the device.
- `descriptor`: The configuration descriptor to parse.

## Return Value

Return Value The milliamps required.

## Discussion

Discussion This method parses a configuration descriptor and returns the number of milliamps required to power the device.

## See Also

### Configuration Descriptors

- [IOUSBGetNextDescriptor](usbdriverkit/iousbgetnextdescriptor.md)
- [IOUSBGetNextDescriptorWithType](usbdriverkit/iousbgetnextdescriptorwithtype.md)
- [IOUSBGetNextAssociatedDescriptor](usbdriverkit/iousbgetnextassociateddescriptor.md)
- [IOUSBGetNextAssociatedDescriptorWithType](usbdriverkit/iousbgetnextassociateddescriptorwithtype.md)
