---
title: IOUSBGetNextEndpointDescriptor
framework: usbdriverkit
role: symbol
role_heading: Function
path: usbdriverkit/iousbgetnextendpointdescriptor
---

# IOUSBGetNextEndpointDescriptor

Finds the next endpoint descriptor associated with an interface descriptor.

## Declaration

```occ
const IOUSBEndpointDescriptor *IOUSBGetNextEndpointDescriptor(const IOUSBConfigurationDescriptor *configurationDescriptor, const IOUSBInterfaceDescriptor *interfaceDescriptor, const IOUSBDescriptorHeader *currentDescriptor);
```

## Parameters

- `configurationDescriptor`: A configuration descriptor that contains the descriptors to iterate through.
- `interfaceDescriptor`: An interface descriptor within the bounds of the configuration descriptor.
- `currentDescriptor`: A descriptor pointer within the bounds of the configuration descriptor, or NULL.

## Return Value

Return Value An endpoint descriptor pointer, or NULL if no matching descriptor can be found.

## Discussion

Discussion This method uses getNextAssociatedDescriptorWithType to fetch the next endpoint descriptor associated with a specific interface descriptor.

## See Also

### Endpoint Descriptors

- [IOUSBGetEndpointAddress](usbdriverkit/iousbgetendpointaddress.md)
- [IOUSBGetEndpointBurstSize](usbdriverkit/iousbgetendpointburstsize.md)
- [IOUSBGetEndpointDirection](usbdriverkit/iousbgetendpointdirection.md)
- [IOUSBGetEndpointIntervalEncodedMicroframes](usbdriverkit/iousbgetendpointintervalencodedmicroframes.md)
- [IOUSBGetEndpointIntervalFrames](usbdriverkit/iousbgetendpointintervalframes.md)
- [IOUSBGetEndpointIntervalMicroframes](usbdriverkit/iousbgetendpointintervalmicroframes.md)
- [IOUSBGetEndpointMaxPacketSize](usbdriverkit/iousbgetendpointmaxpacketsize.md)
- [IOUSBGetEndpointMaxStreams](usbdriverkit/iousbgetendpointmaxstreams.md)
- [IOUSBGetEndpointMaxStreamsEncoded](usbdriverkit/iousbgetendpointmaxstreamsencoded.md)
- [IOUSBGetEndpointMult](usbdriverkit/iousbgetendpointmult.md)
- [IOUSBGetEndpointNumber](usbdriverkit/iousbgetendpointnumber.md)
- [IOUSBGetEndpointType](usbdriverkit/iousbgetendpointtype.md)
