---
title: "IOUSBGetEndpointAddress(_:)"
framework: iousbhost
role: symbol
role_heading: Function
path: "iousbhost/iousbgetendpointaddress(_:)"
---

# IOUSBGetEndpointAddress(_:)

Obtains the direction and number of an endpoint from an endpoint descriptor.

## Declaration

```swift
func IOUSBGetEndpointAddress(_ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt8
```

## Parameters

- `descriptor`: An endpoint descriptor to parse.

## Return Value

Return Value The direction and endpoint number.

## Discussion

Discussion This method parses an endpoint descriptor to determine its address.

## See Also

### Endpoint Descriptor Parsing

- [IOUSBGetNextEndpointDescriptor(_:_:_:)](iousbhost/iousbgetnextendpointdescriptor(_:_:_:).md)
- [IOUSBGetEndpointDirection(_:)](iousbhost/iousbgetendpointdirection(_:).md)
- [IOUSBGetEndpointNumber(_:)](iousbhost/iousbgetendpointnumber(_:).md)
- [IOUSBGetEndpointType(_:)](iousbhost/iousbgetendpointtype(_:).md)
- [IOUSBGetEndpointMaxPacketSize(_:_:)](iousbhost/iousbgetendpointmaxpacketsize(_:_:).md)
- [IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)](iousbhost/iousbgetendpointintervalencodedmicroframes(_:_:).md)
- [IOUSBGetEndpointIntervalMicroframes(_:_:)](iousbhost/iousbgetendpointintervalmicroframes(_:_:).md)
- [IOUSBGetEndpointIntervalFrames(_:_:)](iousbhost/iousbgetendpointintervalframes(_:_:).md)
- [IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)](iousbhost/iousbgetendpointmaxstreamsencoded(_:_:_:).md)
- [IOUSBGetEndpointMaxStreams(_:_:_:)](iousbhost/iousbgetendpointmaxstreams(_:_:_:).md)
