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

# IOUSBHostDeviceRequestType(_:_:_:)

Creates the request type field of a device request.

```
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

The request type.

## See Also

  <doc://com.apple.documentation/documentation/iokit/tiousbdevicerequestdirectionvalue>

  <doc://com.apple.documentation/documentation/iokit/tiousbdevicerequestrecipientvalue>

  <doc://com.apple.documentation/documentation/iokit/tiousbdevicerequesttypevalue>



---

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)