IOUSBGetNextInterfaceDescriptor(_:_:)
Obtains the next interface descriptor in a configuration descriptor.
Declaration
func IOUSBGetNextInterfaceDescriptor(_ configurationDescriptor: UnsafePointer<IOUSBConfigurationDescriptor>!, _ currentDescriptor: UnsafePointer<IOUSBDescriptorHeader>!) -> UnsafePointer<IOUSBInterfaceDescriptor>!Parameters
- configurationDescriptor:
A configuration descriptor that contains the descriptors to iterate through.
- currentDescriptor:
A descriptor pointer within the bounds of
configurationDescriptor, ornil.
Return Value
The next interface descriptor pointer, or nil if no matching descriptor returns.
Discussion
This method uses IOUSBGetNextDescriptorWithType(_:_:_:) to find the next interface descriptor.