<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IOUSBHost",
  "identifier" : "/documentation/IOUSBHost/IOUSBGetNextEndpointDescriptor(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "IOUSBHost"
    ],
    "preciseIdentifier" : "c:@F@IOUSBGetNextEndpointDescriptor"
  },
  "title" : "IOUSBGetNextEndpointDescriptor(_:_:_:)"
}
-->

# IOUSBGetNextEndpointDescriptor(_:_:_:)

Obtains the next endpoint descriptor for an interface descriptor.

```
func IOUSBGetNextEndpointDescriptor(_ configurationDescriptor: UnsafePointer<IOUSBConfigurationDescriptor>!, _ interfaceDescriptor: UnsafePointer<IOUSBInterfaceDescriptor>!, _ currentDescriptor: UnsafePointer<IOUSBDescriptorHeader>!) -> UnsafePointer<IOUSBEndpointDescriptor>!
```

## Parameters

`configurationDescriptor`

A configuration descriptor that contains the descriptors to iterate through.

`interfaceDescriptor`

An interface descriptor within the bounds of `configurationDescriptor`.

`currentDescriptor`

A descriptor pointer within the bounds of `configurationDescriptor`, or `nil`.

## Return Value

A descriptor pointer, or `nil` if no matching descriptor returns.

## Discussion

This method uses [`IOUSBGetNextAssociatedDescriptorWithType(_:_:_:_:)`](/documentation/IOUSBHost/IOUSBGetNextAssociatedDescriptorWithType(_:_:_:_:)) to find the next endpoint descriptor for a specific interface descriptor.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)