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.