Function

IOI2CSendRequest

Carries out the I2C transaction specified by an IOI2CRequest structure.

Declaration

IOReturn IOI2CSendRequest(IOI2CConnectRef connect, IOOptionBits options, IOI2CRequest *request);

Parameters

connect

The opaque IOI2CConnectRef returned by IOI2CInterfaceOpen().

options

Pass kNilOptions.

request

Pass a pointer to a IOI2CRequest structure describing the request. If an asynchronous request (with a non-NULL completion routine) the request structure must be valid for the life of the request.

Return Value

An IOReturn code reflecting only the result of starting the transaction. If the result of IOI2CSendRequest() is kIOReturnSuccess, the I2C transaction result is returned in the result field of the request structure.

Discussion

Frees the resources associated with an IOI2CConnectRef.

See Also

Miscellaneous

IOFBCopyI2CInterfaceForBus

Returns an instance of an I2C bus interface, associated with an IOFramebuffer instance / bus index pair.

IOFBGetI2CInterfaceCount

Returns a count of I2C interfaces available associated with an IOFramebuffer instance.

IOI2CInterfaceClose

Closes an IOI2CConnectRef.

IOI2CInterfaceOpen

Opens an instance of an I2C bus interface, allowing I2C requests to be made.