What is address1 in lpi2c_slave_config_t of I2C slave?

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

What is address1 in lpi2c_slave_config_t of I2C slave?

ソリューションへジャンプ
1,324件の閲覧回数
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,312件の閲覧回数
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,313件の閲覧回数
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,277件の閲覧回数
rickyrocky
Contributor I

Hi @Hui_Ma 

Thanks for your reply.

0 件の賞賛
返信