---
title: "IOUSBHostDeviceRequestType(_:_:_:)"
framework: iousbhost
role: symbol
role_heading: Function
path: "iousbhost/iousbhostdevicerequesttype(_:_:_:)"
---

# IOUSBHostDeviceRequestType(_:_:_:)

Creates the request type field of a device request.

## Declaration

```swift
func IOUSBHostDeviceRequestType(_ direction: tIOUSBDeviceRequestDirectionValue, _ type: tIOUSBDeviceRequestTypeValue, _ recipient: tIOUSBDeviceRequestRecipientValue) -> UInt8
```

## Parameters

- `direction`: The direction of the request.
- `type`: The type of the request.
- `recipient`: The recipient of the request.

## Return Value

Return Value The request type.

## See Also

### Sending Device Requests

- [IOUSBHostDefaultControlCompletionTimeout](iousbhost/iousbhostdefaultcontrolcompletiontimeout.md)
