Inter-Integrated Circuit (I2C)
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_I2CMasterControl is a function pointer located at ROM_I2CTABLE[18].
Parameters:
ui32Base is the base address of the I2C Master module.
ui32Cmd command to be issued to the I2C Master module
Description:
This function is used to control the state of the Master module send and receive operations.
The ui8Cmd parameter can be one of the following values:
I2C_MASTER_CMD_SINGLE_SEND
I2C_MASTER_CMD_SINGLE_RECEIVE
I2C_MASTER_CMD_BURST_SEND_START
I2C_MASTER_CMD_BURST_SEND_CONT
I2C_MASTER_CMD_BURST_SEND_FINISH
I2C_MASTER_CMD_BURST_SEND_ERROR_STOP
I2C_MASTER_CMD_BURST_RECEIVE_START
I2C_MASTER_CMD_BURST_RECEIVE_CONT
I2C_MASTER_CMD_BURST_RECEIVE_FINISH
I2C_MASTER_CMD_BURST_RECEIVE_ERROR_STOP
Returns:
None.
12.2.1.4 ROM_I2CMasterDataGet
Receives a byte that has been sent to the I2C Master.
Prototype:
uint32_t
ROM_I2CMasterDataGet(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_I2CMasterDataGet is a function pointer located at ROM_I2CTABLE[20].
Parameters:
ui32Base is the base address of the I2C Master module.
Description:
This function reads a byte of data from the I2C Master Data Register.
Returns:
Returns the byte received from by the I2C Master, cast as an uint32_t.
126 April 8, 2013