ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference

 


IOHIDLibObsolete.h

Includes:
<sys/cdefs.h>
<CoreFoundation/CoreFoundation.h>
<CoreFoundation/CFPlugInCOM.h>
<IOKit/IOTypes.h>
<IOKit/IOReturn.h>
<IOKit/hid/IOHIDKeys.h>

Overview

Use the links in the table of contents to the left to access the documentation.



C Pseudoclasses

IOHIDDeviceInterface
IOHIDDeviceInterface121
IOHIDDeviceInterface122
IOHIDOutputTransactionInterface
IOHIDQueueInterface


Typedefs


IOHIDCallbackFunction


typedef void ( *IOHIDCallbackFunction)(
    void *target,
    IOReturn result,
    void *refcon,
    void *sender);  
Fields
target

void * pointer to your data, often a pointer to an object.

result

Completion result of desired operation.

refcon

void * pointer to more data.

sender

Interface instance sending the completion routine.

Discussion

Type and arguments of callout C function that is used when a completion routine is called, see IOHIDLib.h:setRemovalCallback().


IOHIDElementCallbackFunction


typedef void ( *IOHIDElementCallbackFunction) (
    void *target,
    IOReturn result,
    void *refcon,
    void *sender,
    IOHIDElementCookie elementCookie);  
Fields
target

void * pointer to your data, often a pointer to an object.

result

Completion result of desired operation.

refcon

void * pointer to more data.

sender

Interface instance sending the completion routine.

elementCookie

Element within interface instance sending completion.

Discussion

Type and arguments of callout C function that is used when a completion routine is called, see IOHIDLib.h:setElementValue().


IOHIDReportCallbackFunction


typedef void ( *IOHIDReportCallbackFunction) (
    void *target,
    IOReturn result,
    void *refcon,
    void *sender,
    uint32_t bufferSize);  
Fields
target

void * pointer to your data, often a pointer to an object.

result

Completion result of desired operation.

refcon

void * pointer to more data.

sender

Interface instance sending the completion routine.

bufferSize

Size of the buffer received upon completion.

Discussion

Type and arguments of callout C function that is used when a completion routine is called, see IOHIDLib.h:setReport().

#defines


kIOHIDDeviceInterfaceID


#define kIOHIDDeviceInterfaceID CFUUIDGetConstantUUIDWithBytes(NULL, \ 
    0x78, 0xBD, 0x42, 0x0C, 0x6F, 0x14, 0x11, 0xD4, \ 
    0x94, 0x74, 0x00, 0x05, 0x02, 0x8F, 0x18, 0xD5) 
Discussion

Interface ID for the IOHIDDeviceInterface. Corresponds to an available HID device.


kIOHIDDeviceInterfaceID121


#define kIOHIDDeviceInterfaceID121 CFUUIDGetConstantUUIDWithBytes(NULL, \ 
    0x7d, 0xb, 0x51, 0xe, 0x16, 0xd5, 0x11, 0xd7, \ 
    0x9e, 0x9b, 0x0, 0x3, 0x93, 0x99, 0x2e, 0x38) 
Discussion

Interface ID for the IOHIDDeviceInterface121. Corresponds to an available HID device that includes methods from IOHIDDeviceInterface. This interface is available on IOHIDLib 1.2.1 and Mac OS X 10.2.3 or later.


kIOHIDDeviceInterfaceID122


#define kIOHIDDeviceInterfaceID122 CFUUIDGetConstantUUIDWithBytes(NULL, \ 
    0xb7, 0xa, 0xbf, 0x31, 0x16, 0xd5, 0x11, 0xd7, \ 
    0xab, 0x35, 0x0, 0x3, 0x93, 0x99, 0x2e, 0x38) 
Discussion

Interface ID for the IOHIDDeviceInterface122. Corresponds to an available HID device that includes methods from IOHIDDeviceInterface and IOHIDDeviceInterface121. This interface is available on IOHIDLib 1.2.2 and Mac OS X 10.3 or later.


kIOHIDOutputTransactionInterfaceID


#define kIOHIDOutputTransactionInterfaceID CFUUIDGetConstantUUIDWithBytes(NULL,\ 
    0x80, 0xCD, 0xCC, 0x00, 0x75, 0x5D, 0x11, 0xD4, \ 
    0x80, 0xEF, 0x00, 0x05, 0x02, 0x8F, 0x18, 0xD5) 
Discussion

Interface ID for the kIOHIDOutputTransactionInterfaceID. Corresponds to an output transaction for one or more report IDs on a specific device.


kIOHIDQueueInterfaceID


#define kIOHIDQueueInterfaceID CFUUIDGetConstantUUIDWithBytes(NULL, \ 
    0x81, 0x38, 0x62, 0x9E, 0x6F, 0x14, 0x11, 0xD4, \ 
    0x97, 0x0E, 0x00, 0x05, 0x02, 0x8F, 0x18, 0xD5) 
Discussion

Interface ID for the kIOHIDQueueInterfaceID. Corresponds to a queue for a specific HID device.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2009-02-23