What is address1 in lpi2c_slave_config_t of I2C slave?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is address1 in lpi2c_slave_config_t of I2C slave?

Jump to solution
783 Views
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 Kudos
Reply
1 Solution
771 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
772 Views
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 Kudos
Reply
736 Views
rickyrocky
Contributor I

Hi @Hui_Ma 

Thanks for your reply.

0 Kudos
Reply