---
title: IOUSBGetEndpointUsageType
framework: USBDriverKit
role: symbol
role_heading: Function
platforms: [driverkit 19.0+]
path: usbdriverkit/iousbgetendpointusagetype
---

# IOUSBGetEndpointUsageType

## Declaration

```occ
uint8_t IOUSBGetEndpointUsageType(const IOUSBEndpointDescriptor *descriptor);
```

## Parameters

- `descriptor`: The descriptor to parse

## Return Value

Return Value tEndpointUsageType indicating the type found.

## Discussion

Discussion Extract the usage type of an endpoint from an endpoint descriptor This method parses an endpoint descriptor to determine its usage type. Only periodic endpoints have usage types

## See Also

### Functions

- [IOUSBGetEndpointSynchronizationType](usbdriverkit/iousbgetendpointsynchronizationtype.md)
- [IOUSBGetPlatformCapabilityDescriptorWithUUID](usbdriverkit/iousbgetplatformcapabilitydescriptorwithuuid.md)
