What is address1 in lpi2c_slave_config_t of I2C slave?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is address1 in lpi2c_slave_config_t of I2C slave?

跳至解决方案
1,316 次查看
rickyrocky
Contributor I

Hi All

I am using i2c for transfer data.

There are address0 and address1 in lpi2c_slave_config_t struct.
As an sdk example, evkmimxrt1064_lpi2c_interrupt_b2b_transfer_slave just use address0.
1. What does address1 mean? and when is it used?
2. Master should use slave's address0 or address1 for transfer?
3. Is possible to define address0 in 7-bit, and address1 in 10-bit?
0 项奖励
回复
1 解答
1,304 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

1 & 2 . address1 is an alternate slave 7-bit address;  The usage based on addressMatchMode:

/*! @brief LPI2C slave address match options. */
typedef enum _lpi2c_slave_address_match
{
kLPI2C_MatchAddress0 = 0U, /*!< Match only address 0. */
kLPI2C_MatchAddress0OrAddress1 = 2U, /*!< Match either address 0 or address 1. */
kLPI2C_MatchAddress0ThroughAddress1 = 6U, /*!< Match a range of slave addresses from address 0 through address 1. */
} lpi2c_slave_address_match_t;

In general, the default setting is match only address 0.

3. I checked the SDK only support slave 7-bit address so far.

Mike

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,305 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

1 & 2 . address1 is an alternate slave 7-bit address;  The usage based on addressMatchMode:

/*! @brief LPI2C slave address match options. */
typedef enum _lpi2c_slave_address_match
{
kLPI2C_MatchAddress0 = 0U, /*!< Match only address 0. */
kLPI2C_MatchAddress0OrAddress1 = 2U, /*!< Match either address 0 or address 1. */
kLPI2C_MatchAddress0ThroughAddress1 = 6U, /*!< Match a range of slave addresses from address 0 through address 1. */
} lpi2c_slave_address_match_t;

In general, the default setting is match only address 0.

3. I checked the SDK only support slave 7-bit address so far.

Mike

 

0 项奖励
回复
1,269 次查看
rickyrocky
Contributor I

Hi @Hui_Ma 

Thanks for your reply.

0 项奖励
回复