# mios32/LPC17xx/mios32_iic.c File Reference

`#include <mios32.h>`

## Data Structures
union | transfer_state_t
struct | iic_rec_t
## Defines
#define | I2C_PERIPHERAL_FRQ (MIOS32_SYS_CPU_FREQUENCY/4)
## Functions
s32 | MIOS32_IIC_Init (u32 mode)
s32 | MIOS32_IIC_TransferBegin (u8 iic_port, mios32_iic_semaphore_t semaphore_type)
s32 | MIOS32_IIC_TransferFinished (u8 iic_port)
s32 | MIOS32_IIC_LastErrorGet (u8 iic_port)
s32 | MIOS32_IIC_TransferCheck (u8 iic_port)
s32 | MIOS32_IIC_TransferWait (u8 iic_port)
s32 | MIOS32_IIC_Transfer (u8 iic_port, mios32_iic_transfer_t transfer, u8 address, u8 *buffer, u16 len)
void | I2C0_IRQHandler (void)
## Variables
volatile u32 | MIOS32_IIC_unexpected_event