---
title: "IOUSBGetNextInterfaceDescriptor(_:_:)"
framework: iousbhost
role: symbol
role_heading: Function
path: "iousbhost/iousbgetnextinterfacedescriptor(_:_:)"
---

# IOUSBGetNextInterfaceDescriptor(_:_:)

Obtains the next interface descriptor in a configuration descriptor.

## Declaration

```swift
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, or nil.

## Return Value

Return Value The next interface descriptor pointer, or nil if no matching descriptor returns.

## Discussion

Discussion This method uses IOUSBGetNextDescriptorWithType(_:_:_:) to find the next interface descriptor.

## See Also

### Configuration Descriptor Parsing

- [IOUSBGetNextDescriptor(_:_:)](iousbhost/iousbgetnextdescriptor(_:_:).md)
- [IOUSBGetNextDescriptorWithType(_:_:_:)](iousbhost/iousbgetnextdescriptorwithtype(_:_:_:).md)
- [IOUSBGetNextAssociatedDescriptor(_:_:_:)](iousbhost/iousbgetnextassociateddescriptor(_:_:_:).md)
- [IOUSBGetNextAssociatedDescriptorWithType(_:_:_:_:)](iousbhost/iousbgetnextassociateddescriptorwithtype(_:_:_:_:).md)
- [IOUSBGetNextInterfaceAssociationDescriptor(_:_:)](iousbhost/iousbgetnextinterfaceassociationdescriptor(_:_:).md)
- [IOUSBGetConfigurationMaxPowerMilliAmps(_:_:)](iousbhost/iousbgetconfigurationmaxpowermilliamps(_:_:).md)
