Structure

IOI2CRequest

No overview available.

Declaration

typedef struct IOI2CRequest {
    ...
} IOI2CRequest;

Topics

Instance Properties

commFlags

Flags that modify the I2C transaction type.

completion

A completion routine to be executed when the request completes. If NULL is passed, the request is synchronous, otherwise it may execute asynchronously.

minReplyDelay

Minimum delay as absolute time between send and reply transactions.

replyAddress

I2C Address from which to read.

replyBuffer

Pointer to the reply buffer.

replyBytes

Max bytes to reply (size of replyBuffer). Set to actual bytes received on completion of the request.

replySubAddress

I2C Address from which to read.

replyTransactionType

Specifies one of four possible reply transaction types.

result

The result of the transaction. Common errors are kIOReturnNoDevice if there is no device responding at the given address, kIOReturnUnsupportedMode if the type of transaction is unsupported on the requested bus.

sendAddress

I2C address to write.

sendBuffer

Pointer to the send buffer.

sendBytes

Number of bytes to send. Set to actual bytes sent on completion of the request.

sendSubAddress

I2C subaddress to write.

sendTransactionType

Specifies one of three possible transaction types.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software