LPCOpen Platform for LPC18XX/43XX microcontrollers  18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
Macros | Functions
i2cm_18xx_43xx.c File Reference
#include "chip.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 CHIP_CCU_CLK_T i2cm_getClkId (LPC_I2C_T *pI2C)
 
void Chip_I2CM_Init (LPC_I2C_T *pI2C)
 Initialize I2C Interface. More...
 
void Chip_I2CM_DeInit (LPC_I2C_T *pI2C)
 Shutdown I2C Interface. More...
 
void Chip_I2CM_SetBusSpeed (LPC_I2C_T *pI2C, uint32_t busSpeed)
 Set up bus speed for LPC_I2C controller. More...
 
uint32_t Chip_I2CM_XferHandler (LPC_I2C_T *pI2C, I2CM_XFER_T *xfer)
 Transfer state change handler handler. More...
 
void Chip_I2CM_Xfer (LPC_I2C_T *pI2C, I2CM_XFER_T *xfer)
 Transmit and Receive data in master mode. More...
 
uint32_t Chip_I2CM_XferBlocking (LPC_I2C_T *pI2C, I2CM_XFER_T *xfer)
 Transmit and Receive data in master mode. More...
 
uint32_t Chip_I2CM_Write (LPC_I2C_T *pI2C, const uint8_t *buff, uint32_t len)
 Write given buffer of data to I2C interface. More...
 
uint32_t Chip_I2CM_Read (LPC_I2C_T *pI2C, uint8_t *buff, uint32_t len)
 Read data from I2C slave to given buffer. More...
 

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 i2cm_18xx_43xx.c.

Function Documentation

static CHIP_CCU_CLK_T i2cm_getClkId ( LPC_I2C_T pI2C)
static

Definition at line 49 of file i2cm_18xx_43xx.c.