| ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference 
 | 
| IOHIDDeviceInterface121 | 
| Declared In: | 
CFPlugin object subclass which provides the primary interface to HID devices. This class is a subclass of IOHIDDeviceInterface.
| getReport | 
Obtains a report from the device.
IOReturn ( *getReport) ( void *self, IOHIDReportType reportType, uint32_t reportID, void *reportBuffer, uint32_t *reportBufferSize, uint32_t timeoutMS, IOHIDReportCallbackFunction callback, void *callbackTarget, void *callbackRefcon);
reportTypeThe report type.
reportIDThe report ID.
reportBufferPointer to a preallocated buffer.
reportBufferSizeSize of the reportBuffer in bytes. When finished, will contain the actual size of the report.
timeoutMScallbackIf null, this method will behave synchronously.
callbackTargetThe callback target passed to the callback.
callbackRefconThe callback refcon passed to the callback.
Returns an IOReturn code.
| setReport | 
Sends a report to the device.
IOReturn ( *setReport) ( void *self, IOHIDReportType reportType, uint32_t reportID, void *reportBuffer, uint32_t reportBufferSize, uint32_t timeoutMS, IOHIDReportCallbackFunction callback, void *callbackTarget, void *callbackRefcon);
reportTypeThe report type.
reportIDThe report id.
reportBufferPointer to a preallocated buffer.
reportBufferSizeSize of the reportBuffer in bytes.
timeoutMScallbackIf null, this method will behave synchronously.
callbackTargetThe callback target passed to the callback.
callbackRefconThe callback refcon passed to the callback.
Returns an IOReturn code.
| 
 | 
Last Updated: 2009-02-23