Where is the register address of slave specified for I2C write in IMX RT1050 driver code example of lpi2c_interrupt ?

cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the register address of slave specified for I2C write in IMX RT1050 driver code example of lpi2c_interrupt ?

158 Views
abhiram_d
Contributor I

I am trying to understand the code of lpi2c_interrupt.c but I couldn't find the internal register address of slave to which data is written. I hope LPI2C_MASTER_SLAVE_ADDR_7BIT corresponds to the 7 bit slave address. Also please explain what is meant by peripheral base address.

EXAMPLE_LPI2C_MASTER_BASEADDR

EXAMPLE_LPI2C_SLAVE_BASEADDR

Labels (1)
0 Kudos
1 Reply

87 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Abhiram D

In this example, one lpi2c instance used as lpi2c master and another lpi2c instance used as lpi2c slave. So the EXAMPLE_LPI2C_MASTER_BASEADDR and the EXAMPLE_LPI2C_SLAVE_BASEADDR are the base address of the peripheral in the RT device, and the LPI2C_MASTER_SLAVE_ADDR_7BIT is the slave address used by the i2c protocol.

Best regards

Jorge Alcala

0 Kudos