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

# IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)

Obtains the interval of an endpoint descriptor.

```
func IOUSBGetEndpointIntervalEncodedMicroframes(_ usbDeviceSpeed: UInt32, _ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt32
```

## Parameters

`usbDeviceSpeed`

The operational speed of the device.

`descriptor`

The endpoint descriptor to parse.

## Return Value

The encoded endpoint interval.

## Discussion

This method parses an endpoint descriptor and returns the service interval as *n* in *(2^(n-1))* microframes.

---

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)