LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
i2c_001.c File Reference
#include "i2c_001.h"

Go to the source code of this file.

Macros

#define I2C_CON_FLAGS   (I2C_CON_AA | I2C_CON_SI | I2C_CON_STO | I2C_CON_STA)
 

Functions

static int IP_I2C_SlaveMatchAddr (uint8_t addr1, uint8_t addr2, uint8_t mask)
 
static I2C_SLAVE_ID IP_I2C_SlaveIndexLookup (IP_I2C_001_T *pI2C, uint8_t slaveAddr)
 
int IP_I2C_MasterXfer_StateHandler (IP_I2C_001_T *pI2C, I2C_XFER_T *xfer)
 Master transfer state change handler.
 
I2C_SLAVE_ID IP_I2C_GetSlaveIndex (IP_I2C_001_T *pI2C)
 Get the slave ID of the active slave.
 
int IP_I2C_SlaveXfer_StateHandler (IP_I2C_001_T *pI2C, I2C_XFER_T *xfer)
 Slave transfer state change handler.
 

Macro Definition Documentation

#define I2C_CON_FLAGS   (I2C_CON_AA | I2C_CON_SI | I2C_CON_STO | I2C_CON_STA)

Definition at line 39 of file i2c_001.c.

Function Documentation

static I2C_SLAVE_ID IP_I2C_SlaveIndexLookup ( IP_I2C_001_T pI2C,
uint8_t  slaveAddr 
)
static

Definition at line 56 of file i2c_001.c.

static int IP_I2C_SlaveMatchAddr ( uint8_t  addr1,
uint8_t  addr2,
uint8_t  mask 
)
static

Definition at line 49 of file i2c_001.c.