Inter-Integrated Circuit (I2C)
12.2.1.15 ROM_I2CMasterIntEnableEx
Enables individual I2C Master interrupt sources.
Prototype:
void
ROM_I2CMasterIntEnableEx(uint32_t ui32Base,
uint32_t ui32IntFlags)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_I2CTABLE is an array of pointers located at ROM_APITABLE[3].
ROM_I2CMasterIntEnableEx is a function pointer located at ROM_I2CTABLE[29].
Parameters:
ui32Base is the base address of the I2C Master module.
ui32IntFlags is the bit mask of the interrupt sources to be enabled.
Description:
Enables the indicated I2C Master interrupt sources. Only the sources that are enabled can be
reflected to the processor interrupt; disabled sources have no effect on the processor.
The ui32IntFlags parameter is the logical OR of any of the following:
I2C_MASTER_INT_TIMEOUT - Clock Timeout interrupt
I2C_MASTER_INT_DATA - Data interrupt
Returns:
None.
12.2.1.16 ROM_I2CMasterIntStatus
Gets the current I2C Master interrupt status.
Prototype:
bool
ROM_I2CMasterIntStatus(uint32_t ui32Base,
bool bMasked)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_I2CTABLE is an array of pointers located at ROM_APITABLE[3].
ROM_I2CMasterIntStatus is a function pointer located at ROM_I2CTABLE[11].
Parameters:
ui32Base is the base address of the I2C Master module.
bMasked is false if the raw interrupt status is requested and true if the masked interrupt status
is requested.
Description:
This returns the interrupt status for the I2C Master module. Either the raw interrupt status or
the status of interrupts that are allowed to reflect to the processor can be returned.
132 April 8, 2013