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

# SetReport

Sends a report to the HID device.

```
virtual kern_return_t SetReport(IOMemoryDescriptor *report, IOHIDReportType reportType, uint32_t reportID, IOOptionBits options);
```

## Parameters

`report`

A memory descriptor that contains the report data that you want to send to the HID device.

`reportType`

The type of report you want to send to the device.

`reportID`

The unique identifier for the report.

`options`

Options to specify when sending the report.

## 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>.

## Discussion

This method sets the report by calling the [`setReport`](/documentation/HIDDriverKit/IOHIDDevice/setReport) method of its associated [`IOHIDDevice`](/documentation/HIDDriverKit/IOHIDDevice) object. When sending the report to the device, this method combines the `reportID` and `options` together, with the `reportID` occupying the lower 8 bits of a 32-bit integer, and the `options` occupying the upper 24 bits.

---

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)