<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDReportID",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID11HIDReportIDV"
  },
  "title" : "HIDReportID"
}
-->

# HIDReportID

A type to represent the report IDs of HID reports.

```
struct HIDReportID
```

## Overview

Report IDs are defined to be 1 byte in the HID specification, and can help identify the reports received from or sent to a device.
Report IDs are optional. If a descriptor only has one report, a report ID is unnecessary. A report ID of 0 is invalid.

For more details, see [Human Interface Devices (HID) Specifications and Tools](https://www.usb.org/hid).

## Topics

### Initializers

[`init?(rawValue: UInt8)`](/documentation/CoreHID/HIDReportID/init(rawValue:))

Creates a HID report ID.

### Instance Properties

[`var rawValue: HIDReportID.RawValue`](/documentation/CoreHID/HIDReportID/rawValue)

The raw value of the report ID.

### Type Properties

[`static let allReports: ClosedRange<HIDReportID>`](/documentation/CoreHID/HIDReportID/allReports)

A convenient definition that represents every possible report ID.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Comparable`](/documentation/Swift/Comparable)

[`Escapable`](/documentation/Swift/Escapable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Copyable`](/documentation/Swift/Copyable)

---

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)