|
ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference
|
IOFireWireAVCLibConsumerInterface |
| Declared In: |
Interface for an asynchronous connection consumer.
Used to receive data from an asynchronous connection producer. The functions of the IOFireWireAVCLibConsumerInterface are from the perspective of the Macintosh acting as the consumer/controller pair.
Clears the port flags (currently, there are no flags defined).
Connects to the producer.
Disconnects from the remote producer.
Called by the producer to tell the consumer/controller what mode to write into the producer's register.
Gets the current value of the port flags (currently, there are no flags defined).
Returns a pointer to the producer's segment buffer.
Gets the maximum size of the producer's segment buffer.
Sets the callback handler (of type IOFireWireAVCFrameStatusHandler) to be called when the producer sends data to the consumer.
Sets the maximum size of any individual FireWire transaction (an individual block write).
Sets the port flags to the passed in value (currently, there are no flags defined).
Sets the callback handler to report the state of this connection.
Sets the plug to which the consumer is connecting.
Sets the maximum size of the producer's segment buffer.
Sets the subunit in the producer to which the consumer is making a connection.
clearPortFlags |
Clears the port flags (currently, there are no flags defined).
void ( *clearPortFlags)( void *self, UInt32 flags );
selfPointer to IOFireWireAVCLibConsumerInterface.
flagsCurrently unused.
connectToRemotePlug |
Connects to the producer.
IOReturn ( *connectToRemotePlug)( void *self );
selfPointer to IOFireWireAVCLibConsumerInterface.
This function causes the consumer/controller to send commands to the producer and establish a connection. When the connection is established, setPortStateHandler is called and the status is "connected."
disconnectFromRemotePlug |
Disconnects from the remote producer.
IOReturn ( *disconnectFromRemotePlug)( void *self );
selfPointer to IOFireWireAVCLibConsumerInterface.
frameProcessed |
Called by the producer to tell the consumer/controller what mode to write into the producer's register.
void ( *frameProcessed)( void *self, UInt32 mode );
selfPointer to IOFireWireAVCLibConsumerInterface.
modeThe mode to write into the producer's register.
getPortFlags |
Gets the current value of the port flags (currently, there are no flags defined).
UInt32 ( *getPortFlags)( void *self );
selfPointer to IOFireWireAVCLibConsumerInterface.
getSegmentBuffer |
Returns a pointer to the producer's segment buffer.
char * ( *getSegmentBuffer)( void *self );
selfPointer to IOFireWireAVCLibConsumerInterface.
Returns a pointer to the producer's segment buffer.
getSegmentSize |
Gets the maximum size of the producer's segment buffer.
UInt32 ( *getSegmentSize)( void *self );
selfPointer to IOFireWireAVCLibConsumerInterface.
Returns the size of the segment buffer in bytes.
setFrameStatusHandler |
Sets the callback handler (of type IOFireWireAVCFrameStatusHandler) to be called when the producer sends data to the consumer.
void ( *setFrameStatusHandler)( void *self, void *refcon, IOFireWireAVCFrameStatusHandler handler );
selfPointer to IOFireWireAVCLibConsumerInterface.
refconArbitrary value passed back as first argument of callback.
handlerThe consumer's callback function.
setMaxPayloadSize |
Sets the maximum size of any individual FireWire transaction (an individual block write).
void ( *setMaxPayloadSize)( void *self, UInt32 size );
selfPointer to IOFireWireAVCLibConsumerInterface.
sizeThe maximum payload size in bytes.
setPortFlags |
Sets the port flags to the passed in value (currently, there are no flags defined).
void ( *setPortFlags)( void *self, UInt32 flags );
selfPointer to IOFireWireAVCLibConsumerInterface.
flagsCurrently unused.
setPortStateHandler |
Sets the callback handler to report the state of this connection.
void ( *setPortStateHandler)( void *self, void *refcon, IOFireWireAVCPortStateHandler handler );
selfPointer to IOFireWireAVCLibConsumerInterface.
refconArbitrary value passed back as first argument of callback.
handlerThe consumer's callback function.
The handler can return one of the following values in its state parameter: Bus Suspended, Bus Resumed, Plug Reconnected, Plug Disconnected, or Device Removed.
setRemotePlug |
Sets the plug to which the consumer is connecting.
void ( *setRemotePlug)( void *self, UInt8 plugNumber );
selfPointer to IOFireWireAVCLibConsumerInterface.
plugNumberThe plug number.
setSegmentSize |
Sets the maximum size of the producer's segment buffer.
IOReturn ( *setSegmentSize)( void *self, UInt32 size );
selfPointer to IOFireWireAVCLibConsumerInterface.
sizeThe maximum size of the segment buffer in bytes.
setSubunit |
Sets the subunit in the producer to which the consumer is making a connection.
void ( *setSubunit)( void *self, UInt8 subunit );
selfPointer to IOFireWireAVCLibConsumerInterface.
The8-bit AV/C address of the subunit.
|
Last Updated: 2009-02-23