Contents

IOHIDDeviceOpen

Opens a HID device for communication.

Declaration

IOReturn IOHIDDeviceOpen(IOHIDDeviceRef device, IOOptionBits options);

Parameters

  • device:

    Reference to an IOHIDDevice.

  • options:

    Option bits to be sent down to the device.

Return Value

Returns kIOReturnSuccess if successful.

Discussion

Before the client can issue commands that change the state of the device, it must have succeeded in opening the device. This establishes a link between the client's task and the actual device. To establish an exclusive link use the kIOHIDOptionsTypeSeizeDevice option.

See Also

Miscellaneous