<!--
{
  "availability" : [
    "DriverKit: 19.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USBDriverKit",
  "identifier" : "/documentation/USBDriverKit/IOUSBGetEndpointIntervalEncodedMicroframes",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "USBDriverKit"
    ],
    "preciseIdentifier" : "c:@F@IOUSBGetEndpointIntervalEncodedMicroframes"
  },
  "title" : "IOUSBGetEndpointIntervalEncodedMicroframes"
}
-->

# IOUSBGetEndpointIntervalEncodedMicroframes

Extracts the interval of an endpoint descriptor.

```
uint32_t IOUSBGetEndpointIntervalEncodedMicroframes(uint32_t usbDeviceSpeed, const IOUSBEndpointDescriptor *descriptor);
```

## 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)