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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

720件の閲覧回数
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

ラベル(1)
0 件の賞賛
1 返信

649件の閲覧回数
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 件の賞賛