Inter-Integrated Circuit (I2C)
Prototype:
void
ROM_I2CMasterEnable(uint32_t ui32Base)
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_I2CMasterEnable is a function pointer located at ROM_I2CTABLE[3].
Parameters:
ui32Base is the base address of the I2C Master module.
Description:
This will enable operation of the I2C Master block.
Returns:
None.
12.2.1.8 ROM_I2CMasterErr
Gets the error status of the I2C Master module.
Prototype:
uint32_t
ROM_I2CMasterErr(uint32_t ui32Base)
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_I2CMasterErr is a function pointer located at ROM_I2CTABLE[19].
Parameters:
ui32Base is the base address of the I2C Master module.
Description:
This function is used to obtain the error status of the Master module send and receive opera-
tions.
Returns:
Returns the error status, as one of I2C_MASTER_ERR_NONE,
I2C_MASTER_ERR_ADDR_ACK, I2C_MASTER_ERR_DATA_ACK, or
I2C_MASTER_ERR_ARB_LOST.
12.2.1.9 ROM_I2CMasterInitExpClk
Initializes the I2C Master block.
Prototype:
void
ROM_I2CMasterInitExpClk(uint32_t ui32Base,
uint32_t ui32I2CClk,
bool bFast)
128 April 8, 2013