---
title: GetSpeed
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostpipe/getspeed
---

# GetSpeed

Retrieves the device’s operational speed.

## Declaration

```occ
virtual kern_return_t GetSpeed(uint8_t *speed) const;
```

## Parameters

- `speed`: A pointer to a variable. On output, the variable contains the operational speed of the device. For a list of possible values, see doc://com.apple.usbdriverkit/documentation/USBDriverKit/tIOUSBHostConnectionSpeed.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## See Also

### Getting the Device Attributes

- [GetDeviceAddress](usbdriverkit/iousbhostpipe/getdeviceaddress.md)
- [tIOUSBHostConnectionSpeed](usbdriverkit/tiousbhostconnectionspeed.md)
