---
title: GetSpeed
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostdevice/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 Device Information

- [GetAddress](usbdriverkit/iousbhostdevice/getaddress.md)
- [GetFrameNumber](usbdriverkit/iousbhostdevice/getframenumber.md)
- [GetPortStatus](usbdriverkit/iousbhostdevice/getportstatus.md)
- [tIOUSBHostConnectionSpeed](usbdriverkit/tiousbhostconnectionspeed.md)
- [tIOUSBHostPortStatus](usbdriverkit/tiousbhostportstatus.md)
- [tIOUSBHostPortType](usbdriverkit/tiousbhostporttype.md)
