IOUSBGetConfigurationMaxPowerMilliAmps
Extracts the maximum bus current a configuration descriptor requires.
Declaration
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
The milliamps required.
Discussion
This method parses a configuration descriptor and returns the number of milliamps required to power the device.