<!--
{
  "availability" : [
    "driverkit: 19.0.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HIDDriverKit",
  "identifier" : "/documentation/HIDDriverKit/IOUserUSBHostHIDDevice/setReport",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HIDDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserUSBHostHIDDevice@F@setReport#*$@S@IOMemoryDescriptor#$@E@IOHIDReportType#i#i#*$@S@OSAction#"
  },
  "title" : "setReport"
}
-->

# setReport

Sends a report to the HID device.

```
virtual kern_return_t setReport(IOMemoryDescriptor *report, IOHIDReportType reportType, IOOptionBits options, uint32_t completionTimeout, OSAction *action);
```

## Parameters

`report`

A memory descriptor that describes the report to send to the HID device.

`reportType`

The report type.

`options`

The lower 8 bits of the report ID. The other 24 bits are options to specify the request.

`completionTimeout`

The amount of time, in milliseconds, after which to abort the command if the entire command hasn’t finished.

`action`

The <doc://com.apple.documentation/documentation/DriverKit/OSAction> object to execute when the request completes. Specify `NULL` to execute the request synchronously, which blocks the current thread until the request completes.

## Return Value

<doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> on success, or another value if an error occurs. See <doc://com.apple.documentation/documentation/DriverKit/error-codes>.

---

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)