---
title: IOI2CSendRequest
framework: IOKit
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.0+, macOS 10.3+]
path: iokit/1410373-ioi2csendrequest
---

# IOI2CSendRequest

Carries out the I2C transaction specified by an IOI2CRequest structure.

## Declaration

```occ
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

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

Discussion Frees the resources associated with an IOI2CConnectRef.

## See Also

### Miscellaneous

- [IOFBCopyI2CInterfaceForBus](iokit/1410345-iofbcopyi2cinterfaceforbus.md)
- [IOFBGetI2CInterfaceCount](iokit/1410333-iofbgeti2cinterfacecount.md)
- [IOI2CInterfaceClose](iokit/1410390-ioi2cinterfaceclose.md)
- [IOI2CInterfaceOpen](iokit/1410388-ioi2cinterfaceopen.md)
