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

I2C_Private_Functions

I2C_Private_Functions
[I2C]

Functions

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.
void I2C_IntCmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState)
 Enable/Disable interrupt for I2C peripheral.
static int32_t I2C_getNum (LPC_I2C_TypeDef *I2Cx)
 Convert from I2C peripheral to number.

Function Documentation

static int32_t I2C_getNum ( LPC_I2C_TypeDef *  I2Cx ) [static]

Convert from I2C peripheral to number.

Definition at line 103 of file lpc17xx_i2c.c.

void I2C_IntCmd ( LPC_I2C_TypeDef *  I2Cx,
FunctionalState  NewState 
)

Enable/Disable interrupt for I2C peripheral.

Parameters:
[in]I2CxI2C peripheral selected, should be I2C0, I2C1 or I2C2
[in]NewStateNew State of I2C peripheral interrupt in NVIC core should be:

  • ENABLE: enable interrupt for this I2C peripheral
  • DISABLE: disable interrupt for this I2C peripheral
Returns:
None

Definition at line 211 of file lpc17xx_i2c.c.

void I2C_MasterHandler ( LPC_I2C_TypeDef *  I2Cx )

General Master Interrupt handler for I2C peripheral.

Parameters:
[in]I2CxI2C peripheral selected, should be I2C0, I2C1 or I2C2
Returns:
None

Definition at line 252 of file lpc17xx_i2c.c.

void I2C_SlaveHandler ( LPC_I2C_TypeDef *  I2Cx )

General Slave Interrupt handler for I2C peripheral.

Parameters:
[in]I2CxI2C peripheral selected, should be I2C0, I2C1 or I2C2
Returns:
None

Definition at line 455 of file lpc17xx_i2c.c.