IOHIDDeviceSetValueMultipleWithCallback
Sets multiple values for multiple elements and returns status via a completion callback.
Declaration
IOReturn IOHIDDeviceSetValueMultipleWithCallback(IOHIDDeviceRef device, CFDictionaryRef multiple, CFTimeInterval timeout, IOHIDValueMultipleCallback callback, void *context);Parameters
- device:
Reference to an IOHIDDevice.
- muliple:
CFDictionaryRef where key is IOHIDElementRef and value is IOHIDValueRef.
- timeout:
CFTimeInterval containing the timeout.
- callback:
Pointer to a callback method of type IOHIDValueMultipleCallback.
- context:
Pointer to data to be passed to the callback.
Return Value
Returns kIOReturnSuccess if successful.
Discussion
This method behaves asynchronously and will invoke the callback once the report has been issued to the device. It is only relevent for either output or feature type elements.
See Also
Miscellaneous
IOHIDDeviceCloseIOHIDDeviceConformsToIOHIDDeviceCopyMatchingElementsIOHIDDeviceCopyValueMultipleIOHIDDeviceCopyValueMultipleWithCallbackIOHIDDeviceCreateIOHIDDeviceGetPropertyIOHIDDeviceGetReportIOHIDDeviceGetReportWithCallbackIOHIDDeviceGetServiceIOHIDDeviceGetTypeIDIOHIDDeviceGetValueIOHIDDeviceGetValueWithCallbackIOHIDDeviceOpenIOHIDDeviceRegisterInputReportCallbackIOHIDDeviceRegisterInputValueCallbackIOHIDDeviceRegisterRemovalCallbackIOHIDDeviceScheduleWithRunLoopIOHIDDeviceSetInputValueMatchingIOHIDDeviceSetInputValueMatchingMultipleIOHIDDeviceSetPropertyIOHIDDeviceSetReportIOHIDDeviceSetReportWithCallbackIOHIDDeviceSetValueIOHIDDeviceSetValueMultipleIOHIDDeviceSetValueWithCallbackIOHIDDeviceUnscheduleFromRunLoop