ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference
|
IOHIDOutputTransactionInterface |
Declared In: |
CFPlugin object subclass which privides interface for output transactions to HID devices. Created by a IOHIDDeviceInterface object.
Adds an element to the transaction.
Clears the transaction.
Commits the transaction.
Creates the current transaction.
Creates an async event source.
Creates an async port.
Disposes of the current transaction.
Obtains the current event source.
Obtains the current async port.
Obtains the default value of an element in a transaction.
Obtains the value of an element in a transaction.
Checks whether an element has been added to the transaction.
Removes an element from the transaction.
Sets the default value of an element in a transaction.
Sets the value of an element in a transaction.
addElement |
Adds an element to the transaction.
IOReturn ( *addElement) ( void *self, IOHIDElementCookie elementCookie);
elementCookie
The element of interest.
Returns an IOReturn code.
If the element has already been added to transaction, an error will be returned.
clear |
Clears the transaction.
IOReturn ( *clear)( void *self);
Returns an IOReturn code.
Transaction element values will cleared. Default values will be preserved.
commit |
Commits the transaction.
IOReturn ( *commit)( void *self, uint32_t timeoutMS, IOHIDCallbackFunction callback, void *callbackTarget, void *callbackRefcon);
timeoutMS
UNSUPPORTED
callback
UNSUPPORTED
callbackTarget
UNSUPPORTED
callbackRefcon
UNSUPPORTED
Returns an IOReturn code.
Transaction element values, if set, will be sent to the device. Otherwise, the default element value will be used. If neither are set, that element will be omitted from the commit. After a transaction is committed, transaction element values will be cleared. Default values will be preserved.
create |
Creates the current transaction.
IOReturn ( *create)( void *self);
Returns an IOReturn code.
This method will free any memory that has been allocated for this transaction.
createAsyncEventSource |
Creates an async event source.
IOReturn ( *createAsyncEventSource)( void *self, CFRunLoopSourceRef *source);
source
The newly created event source
Returns an IOReturn code.
This will be used with setEventCallout.
createAsyncPort |
Creates an async port.
IOReturn ( *createAsyncPort)( void *self, mach_port_t *port);
port
The newly created async port.
Returns an IOReturn code.
This will be used with createAsyncEventSource.
dispose |
Disposes of the current transaction.
IOReturn ( *dispose)( void *self);
Returns an IOReturn code.
The transaction will have to be recreated, in order to perform any operations on the transaction.
getAsyncEventSource |
Obtains the current event source.
CFRunLoopSourceRef ( *getAsyncEventSource)( void *self);
Returns a CFRunLoopSourceRef.
getAsyncPort |
Obtains the current async port.
mach_port_t ( *getAsyncPort)( void *self);
Returns a mach_port_t.
getElementDefault |
Obtains the default value of an element in a transaction.
IOReturn ( *getElementDefault)( void *self, IOHIDElementCookie elementCookie, IOHIDEventStruct *outValueEvent);
elementCookie
The element of interest.
outValueEvent
The event that will be filled. If a long value is present, it is up to the caller to deallocate it.
Returns an IOReturn code.
An error will be returned if the element has not been added to the transaction.
getElementValue |
Obtains the value of an element in a transaction.
IOReturn ( *getElementValue)( void *self, IOHIDElementCookie elementCookie, IOHIDEventStruct *outValueEvent);
elementCookie
The element of interest.
outValueEvent
The event that will be filled. If a long value is present, it is up to the caller to deallocate it.
Returns an IOReturn code.
An error will be returned if the element has not been added to the transaction.
hasElement |
Checks whether an element has been added to the transaction.
Boolean ( *hasElement) ( void *self, IOHIDElementCookie elementCookie);
elementCookie
The element of interest.
Returns a Boolean value.
Will return true if present, otherwise will return false.
removeElement |
Removes an element from the transaction.
IOReturn ( *removeElement) ( void *self, IOHIDElementCookie elementCookie);
elementCookie
The element of interest.
Returns an IOReturn code.
If the element has not been added to transaction, an error will be returned.
setElementDefault |
Sets the default value of an element in a transaction.
IOReturn ( *setElementDefault)( void *self, IOHIDElementCookie elementCookie, IOHIDEventStruct *valueEvent);
elementCookie
The element of interest.
valueEvent
The event that will be filled. If a long value is present, it will be copied.
Returns an IOReturn code.
An error will be returned if the element has not been added to the transaction.
setElementValue |
Sets the value of an element in a transaction.
IOReturn ( *setElementValue)( void *self, IOHIDElementCookie elementCookie, IOHIDEventStruct *valueEvent);
elementCookie
The element of interest.
valueEvent
The event that will be filled. If a long value is present, it will be copied.
Returns an IOReturn code.
An error will be returned if the element has not been added to the transaction.
|
Last Updated: 2009-02-23