---
title: IOI2CInterfaceClose
framework: IOKit
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.0+, macOS 10.3+]
path: iokit/1410390-ioi2cinterfaceclose
---

# IOI2CInterfaceClose

Closes an IOI2CConnectRef.

## Declaration

```occ
IOReturn IOI2CInterfaceClose(IOI2CConnectRef connect, IOOptionBits options);
```

## Parameters

- `connect`: The opaque IOI2CConnectRef returned by IOI2CInterfaceOpen().
- `options`: Pass kNilOptions.

## Return Value

Return Value An IOReturn code.

## Discussion

Discussion Frees the resources associated with an IOI2CConnectRef.

## See Also

### Miscellaneous

- [IOFBCopyI2CInterfaceForBus](iokit/1410345-iofbcopyi2cinterfaceforbus.md)
- [IOFBGetI2CInterfaceCount](iokit/1410333-iofbgeti2cinterfacecount.md)
- [IOI2CInterfaceOpen](iokit/1410388-ioi2cinterfaceopen.md)
- [IOI2CSendRequest](iokit/1410373-ioi2csendrequest.md)
