Mac Developer Library

Developer

IOHIDDevice.h Reference

Options
Deployment Target:

On This Page

IOHIDDevice.h Reference

Included Headers

  • <IOKit/IOService.h>

  • <IOKit/IOMessage.h>

  • <IOKit/IOBufferMemoryDescriptor.h>

  • <IOKit/hidsystem/IOHIDDescriptorParser.h>

  • <IOKit/hid/IOHIDKeys.h>

Callbacks

  • Function called when set/get report completes

    Declaration

    Objective-C

    typedef void ( *IOHIDCompletionAction)( void *target, void *parameter, IOReturn status, UInt32 bufferSizeRemaining);

    Parameters

    target

    The target specified in the IOHIDCompletion struct.

    parameter

    The parameter specified in the IOHIDCompletion struct.

    status

    Completion status

    Import Statement

    Objective-C

    #include <IOHIDDevice.h>;

    Availability

    Available in OS X v10.2 and later.

Data Types

See the Overview section above for header-level documentation.

  • Struct spefifying action to perform when set/get report completes.

    Declaration

    Objective-C

    typedef struct IOHIDCompletion { void *target; IOHIDCompletionAction action; void *parameter; } IOHIDCompletion;

    Import Statement

    Objective-C

    #include <IOHIDDevice.h>;

    Availability

    Available in OS X v10.2 and later.

Constants

See the Overview section above for header-level documentation.

  • Option bits for IOHIDDevice::handleReport, IOHIDDevice::getReport, and IOHIDDevice::setReport

    Declaration

    Objective-C

    enum { kIOHIDReportOptionNotInterrupt = 0x100 };

    Constants

    • kIOHIDReportOptionNotInterrupt

      kIOHIDReportOptionNotInterrupt

      Tells method that the report passed was not interrupt driven.

      Available in OS X v10.3 and later.