LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Macros | Functions
i2cm_112x.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

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