---
title: getReport
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserusbhosthiddevice/getreport-2v8zk
---

# getReport

Gets a report from the HID device.

## Declaration

```occ
kern_return_t getReport(IOMemoryDescriptor *report, IOHIDReportType reportType, IOOptionBits options, uint32_t completionTimeout, uint32_t *bytesTransferred);
```

## Parameters

- `report`: The report type.
- `reportType`: The lower 8 bits will represent the Report ID. The other 24 bits are options to specify the request.
- `options`: Specifies an amount of time (in ms) after which the command will be aborted if the entire command has not been completed.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## Discussion

Discussion The report read from the HID device.

## See Also

### Managing Device Reports

- [newReportDescriptor](hiddriverkit/iouserusbhosthiddevice/newreportdescriptor.md)
- [getReport](hiddriverkit/iouserusbhosthiddevice/getreport-6stqs.md)
- [setReport](hiddriverkit/iouserusbhosthiddevice/setreport.md)
- [initInputReport](hiddriverkit/iouserusbhosthiddevice/initinputreport.md)
- [CompleteInputReport](hiddriverkit/iouserusbhosthiddevice/completeinputreport.md)
- [scheduleInputReportRetry](hiddriverkit/iouserusbhosthiddevice/scheduleinputreportretry.md)
- [cancelInputReportRetry](hiddriverkit/iouserusbhosthiddevice/cancelinputreportretry.md)
- [TimerOccurred](hiddriverkit/iouserusbhosthiddevice/timeroccurred.md)
