Instance Property

setElementValue

Sets an element value on the device.

Declaration

IOReturn (*setElementValue)(void *self, IOHIDElementCookie elementCookie, IOHIDEventStruct *valueEvent, uint32_t timeoutMS, IOHIDElementCallbackFunction callback, void *callbackTarget, void *callbackRefcon);

Parameters

elementCookie

The element of interest.

valueEvent

The event that will be filled. If a long value is present, it will be copied.

timeoutMS

UNSUPPORTED.

callback

UNSUPPORTED.

callbackTarget

UNSUPPORTED.

callbackRefcon

UNSUPPORTED.

Return Value

Returns an IOReturn code.

Discussion

This call is most useful for feature type elements. It is recommended to use IOOutputTransaction for output type elements.