NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

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_SetClock (LPC_I2C_TypeDef *I2Cx, uint32_t target_clock)
 Setup clock rate for I2C peripheral.
void I2C_DeInit (LPC_I2C_TypeDef *I2Cx)
 De-initializes the I2C peripheral registers to their default reset values.
void I2C_Init (LPC_I2C_TypeDef *I2Cx, uint32_t clockrate)
 Initializes the I2Cx peripheral with specified parameter.
void I2C_Cmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState)
 Enable or disable I2C peripheral's operation.
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.
void I2C0_StdIntHandler (void)
 Standard Interrupt handler for I2C0 peripheral.
void I2C1_StdIntHandler (void)
 Standard Interrupt handler for I2C1 peripheral.
void I2C2_StdIntHandler (void)
 Standard Interrupt handler for I2C2 peripheral.

Detailed Description

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

Version:
: 1.0
Date:
: 13. Apr. 2009
Author:
: HieuNguyen

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.