Frank 26080115 / LPC1700CMSIS_Lib
Embed: (wiki syntax)

« Back to documentation index

lpc17xx_i2c.h File Reference

lpc17xx_i2c.h File Reference

Contains all macro definitions and function prototypes support for I2C firmware library on LPC17xx. More...

Go to the source code of this file.

Data Structures

struct  I2C_OWNSLAVEADDR_CFG_Type
 I2C Own slave address setting structure. More...
struct  I2C_M_SETUP_Type
 Master transfer setup data structure definitions. More...
struct  I2C_S_SETUP_Type
 Slave transfer setup data structure definitions. More...

Enumerations

enum  I2C_TRANSFER_OPT_Type { I2C_TRANSFER_POLLING = 0, I2C_TRANSFER_INTERRUPT }
 

Transfer option type definitions.

More...

Functions

void I2C_Init (LPC_I2C_TypeDef *I2Cx, uint32_t clockrate)
 Initializes the I2Cx peripheral with specified parameter.
void I2C_DeInit (LPC_I2C_TypeDef *I2Cx)
 De-initializes the I2C peripheral registers to their default reset values.
void I2C_Cmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState)
 Enable or disable I2C peripheral's operation.
uint32_t I2C_MasterTransferComplete (LPC_I2C_TypeDef *I2Cx)
 Get status of Master Transfer.
uint32_t I2C_SlaveTransferComplete (LPC_I2C_TypeDef *I2Cx)
 Get status of Slave Transfer.
void I2C_SetOwnSlaveAddr (LPC_I2C_TypeDef *I2Cx, I2C_OWNSLAVEADDR_CFG_Type *OwnSlaveAddrConfigStruct)
 Set Own slave address in I2C peripheral corresponding to parameter specified in OwnSlaveAddrConfigStruct.
void I2C_MonitorModeConfig (LPC_I2C_TypeDef *I2Cx, uint32_t MonitorCfgType, FunctionalState NewState)
 Configures functionality in I2C monitor mode.
void I2C_MonitorModeCmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState)
 Enable/Disable I2C monitor mode.
uint8_t I2C_MonitorGetDatabuffer (LPC_I2C_TypeDef *I2Cx)
 Get data from I2C data buffer in monitor mode.
BOOL_8 I2C_MonitorHandler (LPC_I2C_TypeDef *I2Cx, uint8_t *buffer, uint32_t size)
 Get data from I2C data buffer in monitor mode.
void I2C_IntCmd (LPC_I2C_TypeDef *I2Cx, Bool NewState)
 Enable/Disable interrupt for I2C peripheral.
void I2C_MasterHandler (LPC_I2C_TypeDef *I2Cx)
 General Master Interrupt handler for I2C peripheral.
void I2C_SlaveHandler (LPC_I2C_TypeDef *I2Cx)
 General Slave Interrupt handler for I2C peripheral.

Detailed Description

Contains all macro definitions and function prototypes support for I2C firmware library on LPC17xx.

Version:
2.0
Date:
21. May. 2010
Author:
NXP MCU SW Application Team

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file lpc17xx_i2c.h.