|
Mac Dev Center
Mac OS X Reference Library Drivers, Kernel, & Hardware: User-Space Device Access I/O Kit Framework Reference
|
IOFireWireCompareSwapCommandInterface_v3 |
| Declared In: |
Description forthcoming
Cancel command execution
Was the last lock operation successful?
Gets the most recently received ack code for this transaction.
Set the command refCon value and callback handler, and submit the command to FireWire for execution.
Gets the refcon associated with this command
Gets the most recently received response code for this transaction.
Return command completion status.
Get command target address.
Return number of bytes transferred by this command object when it last completed execution.
Is this command object currently executing?
Get the 32-bit value returned on the last compare swap operation.
Get the 64-bit value returned on the last compare swap operation.
Set the buffer where read data should be stored.
Set the completion handler to be called once the command completes asynchronous execution .
Set flags governing this command's execution.
Set FireWire bus generation for which the command object shall be valid. If the failOnReset attribute has been set, the command will only be considered for execution during the bus generation specified by this function.
Set the maximum size in bytes of packets transferred by this command.
Gets the most recently received ack code for this transaction.
Sets the maximum number of retries for this command.
Set the user refCon value. This is the user defined value that will be passed in the refCon argument to the completion function.
Set command target address
Sets the duration of the timeout for this command.
Set values for 32-bit compare swap operation. Calling this function will make the command object perform 32-bit compare swap transactions on the bus. To perform 64-bit compare swap operations, use the SetValues64() call, below.
Set values for 64-bit compare swap operation. Calling this function will make the command object perform 64-bit compare swap transactions on the bus. To perform 32-bit compare swap operations, use the SetValues() call, above.
Set the command refCon value and callback handler, and submit the command to FireWire for execution.
Cancel |
Cancel command execution
IOReturn ( *Cancel)( IOFireWireLibCommandRef self, IOReturn reason);
selfThe command object interface of interest
An IOReturn result code
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
DidLock |
Was the last lock operation successful?
Boolean ( *DidLock)( IOFireWireLibCompareSwapCommandV3Ref self);
selfThe command object interface of interest
Returns true if the last lock operation performed by this command object was successful, false otherwise.
Available in v2 and newer.
GetAckCode |
Gets the most recently received ack code for this transaction.
UInt32 ( *GetAckCode)( IOFireWireLibCommandRef self );
selfA reference to the command
The FireWire ack code.
GetBuffer |
Set the command refCon value and callback handler, and submit the command to FireWire for execution.
selfThe command object interface of interest
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
NO | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
NO | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
NO | |
kIOFireWireWriteQuadletCommandInterfaceID |
NO | |
kIOFireWireCompareSwapCommandInterfaceID |
NO | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
GetRefCon |
Gets the refcon associated with this command
void * ( *GetRefCon)( IOFireWireLibCommandRef self );
selfA reference to the command
void
GetResponseCode |
Gets the most recently received response code for this transaction.
UInt32 ( *GetResponseCode)( IOFireWireLibCommandRef self );
selfA reference to the command
The FireWire response code.
GetStatus |
Return command completion status.
IOReturn ( *GetStatus)( IOFireWireLibCommandRef self);
selfThe command object interface of interest
An IOReturn error code indicating the completion error (if any) returned the last time this command object was executed
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
GetTargetAddress |
Get command target address.
void ( *GetTargetAddress)( IOFireWireLibCommandRef self, FWAddress *outAddr);
selfThe command object interface of interest
outAddrA pointer to an FWAddress to contain the function result.
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
NO |
GetTransferredBytes |
Return number of bytes transferred by this command object when it last completed execution.
UInt32 ( *GetTransferredBytes)( IOFireWireLibCommandRef self);
selfThe command object interface of interest
A UInt32 containing the bytes transferred value
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
IsExecuting |
Is this command object currently executing?
const Boolean (*IsExecuting)(IOFireWireLibCommandRef self);
selfThe command object interface of interest
Returns true if the command object is executing.
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
Locked |
Get the 32-bit value returned on the last compare swap operation.
IOReturn ( *Locked)( IOFireWireLibCompareSwapCommandV3Ref self, UInt32 *oldValue);
selfThe command object interface of interest
oldValueA pointer to contain the value returned by the target of this command on the last compare swap operation
Returns kIOReturnBadArgument if the last compare swap operation performed was 64-bit.
Available in v2 and newer.
Locked64 |
Get the 64-bit value returned on the last compare swap operation.
IOReturn ( *Locked64)( IOFireWireLibCompareSwapCommandV3Ref self, UInt64 *oldValue);
selfThe command object interface of interest
oldValueA pointer to contain the value returned by the target of this command on the last compare swap operation
Returns kIOReturnBadArgument if the last compare swap performed was 32-bit.
Available in v2 and newer.
SetBuffer |
Set the buffer where read data should be stored.
selfThe command object interface of interest
sizeSize in bytes of the receive buffer.
bufA pointer to the receive buffer.
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
NO | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
NO | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
NO | |
kIOFireWireWriteQuadletCommandInterfaceID |
NO | |
kIOFireWireCompareSwapCommandInterfaceID |
NO | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
SetCallback |
Set the completion handler to be called once the command completes asynchronous execution .
void ( *SetCallback)( IOFireWireLibCommandRef self, IOFireWireLibCommandCallback inCallback);
selfThe command object interface of interest
inCallbackA callback handler. Passing nil forces the command object to execute synchronously.
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
SetFlags |
Set flags governing this command's execution.
void ( *SetFlags)( IOFireWireLibCommandRef self, UInt32 inFlags);
selfThe command object interface of interest
inFlagsA UInt32 with bits set corresponding to the flags that should be set
for this command object. The following values may be used:
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
NO | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
NO | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
NO | |
kIOFireWireWriteQuadletCommandInterfaceID |
NO | |
kIOFireWireCompareSwapCommandInterfaceID |
NO | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
SetGeneration |
Set FireWire bus generation for which the command object shall be valid. If the failOnReset attribute has been set, the command will only be considered for execution during the bus generation specified by this function.
void ( *SetGeneration)( IOFireWireLibCommandRef self, UInt32 generation);
selfThe command object interface of interest
generationA bus generation. The current bus generation can be obtained from IOFireWireDeviceInterface::GetBusGeneration().
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
SetMaxPacket |
Set the maximum size in bytes of packets transferred by this command.
IOReturn ( *SetMaxPacket)( IOFireWireLibCommandRef self, IOByteCount maxPacketSize);
selfThe command object interface of interest
maxPacketSizeSize in bytes of largest packet that should be transferred by this command.
An IOReturn result code indicating whether or not the command was successfully submitted
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
NO | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
NO | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
NO | |
kIOFireWireWriteQuadletCommandInterfaceID |
NO | |
kIOFireWireCompareSwapCommandInterfaceID |
NO | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
SetMaxPacketSpeed |
Gets the most recently received ack code for this transaction.
void ( *SetMaxPacketSpeed)( IOFireWireLibCommandRef self, IOFWSpeed speed );
selfA reference to the command
speedthe desired maximum packet speed
void
SetMaxRetryCount |
Sets the maximum number of retries for this command.
void ( *SetMaxRetryCount)( IOFireWireLibCommandRef self, UInt32 count );
selfA reference to the command
countThe number of retires
void
SetRefCon |
Set the user refCon value. This is the user defined value that will be passed in the refCon argument to the completion function.
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
SetTarget |
Set command target address
void ( *SetTarget)( IOFireWireLibCommandRef self, const FWAddress* addr);
selfThe command object interface of interest
addrA pointer to an FWAddress.
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
NO |
SetTimeoutDuration |
Sets the duration of the timeout for this command.
void ( *SetTimeoutDuration)( IOFireWireLibCommandRef self, UInt32 duration );
selfA reference to the command
durationA timeout value in microseconds
void
SetValues |
Set values for 32-bit compare swap operation. Calling this function will make the command object perform 32-bit compare swap transactions on the bus. To perform 64-bit compare swap operations, use the SetValues64() call, below.
void ( *SetValues)( IOFireWireLibCompareSwapCommandV3Ref self, UInt32 cmpVal, UInt32 newVal);
selfThe command object interface of interest
cmpValThe value expected at the address targeted by this command object
newValThe value to be written at the address targeted by this command object
Available in v2 and newer.
SetValues64 |
Set values for 64-bit compare swap operation. Calling this function will make the command object perform 64-bit compare swap transactions on the bus. To perform 32-bit compare swap operations, use the SetValues() call, above.
void ( *SetValues64)( IOFireWireLibCompareSwapCommandV3Ref self, UInt64 cmpVal, UInt64 newVal);
selfThe command object interface of interest
cmpValThe value expected at the address targeted by this command object
newValThe value to be written at the address targeted by this command object
Available in v2 and newer.
Submit |
IOReturn ( *Submit)( IOFireWireLibCommandRef self);
Description forthcoming
SubmitWithRefconAndCallback |
Set the command refCon value and callback handler, and submit the command to FireWire for execution.
IOReturn ( *SubmitWithRefconAndCallback)( IOFireWireLibCommandRef self, void *refCon, IOFireWireLibCommandCallback inCallback);
selfThe command object interface of interest
An IOReturn result code indicating whether or not the command was successfully submitted
Availability: (for interfaces obtained with ID)
kIOFireWireReadCommandInterfaceID |
YES | |
kIOFireWireReadCommandInterfaceID_v2 |
YES | |
kIOFireWireWriteCommandInterfaceID |
YES | |
kIOFireWireWriteCommandInterfaceID_v2 |
YES | |
kIOFireWireReadQuadletCommandInterfaceID |
YES | |
kIOFireWireWriteQuadletCommandInterfaceID |
YES | |
kIOFireWireCompareSwapCommandInterfaceID |
YES | |
kIOFireWireAsyncStreamCommandInterfaceID |
YES |
revision |
UInt32 revision;
Interface version.
version |
UInt32 version;
Interface version.
Last Updated: 2009-10-15