Bose Automation / Mbed 2 deprecated mbed_USBserial

Dependencies:   mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

I2C_Private_Functions

I2C_Private_Functions

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, Bool 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 121 of file main.cpp.

void I2C_IntCmd ( LPC_I2C_TypeDef *  I2Cx,
Bool  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 225 of file main.cpp.

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 253 of file main.cpp.

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 457 of file main.cpp.