<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>i2c addressing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84907/i2c-addressing</link><description>Hi, 
 we have 2 queries regarding i2c speed mode 
 1. what is difference between I2C_ADDR_10_BITS and I2C_MSG_ADDR_10_BITS in i2c.h (SDK Path: nCS\v1.8.0\zephyr\include\drivers, file attached) 
 2. Our slave device is having 7bit address, we couldn&amp;#39;t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Feb 2022 10:27:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84907/i2c-addressing" /><item><title>RE: i2c addressing</title><link>https://devzone.nordicsemi.com/thread/354987?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 10:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0a6228b-ac5c-4293-92cf-40360b4180e6</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The default configuration uses 7-bit addresses, which means that if you don&amp;#39;t set I2C_MSG_ADDR_10_BITS then 7-bit addresses will be used.&lt;/p&gt;
&lt;p&gt;The way it is described in the documentation it seems like&amp;nbsp;&lt;span&gt;I2C_MSG_ADDR_10_BITS&amp;nbsp;is set per message rather than in a config file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want more detail than is provided in the documentation, you can look up the definitions in the source code.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2c addressing</title><link>https://devzone.nordicsemi.com/thread/354971?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 09:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5886c7f-a104-4c74-a9f6-22deb1cf7201</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;What is the configuration of default i2c address ? now as we see for 10-bit we have&amp;nbsp;I2C_ADDR_10_BITS, then what&amp;#39;s for 7-bit address ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Important: Please mention more detail about the difference between I&lt;span&gt;2C_MSG_ADDR_10_BITS &amp;amp;&amp;nbsp;I2C_ADDR_10_BITS configurations, we need detailed description as in driver or in zephyr documentation we are not able to fetch detailed description&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2c addressing</title><link>https://devzone.nordicsemi.com/thread/353913?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 15:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf944f76-d4d2-4054-8fae-e405529910cb</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;You can find the documentation for the Zephyr I2C API here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/i2c.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/i2c.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;According to the documentation,&amp;nbsp;&lt;span&gt;I2C_ADDR_10_BITS&amp;nbsp;is deprecated and replaced by&amp;nbsp;I2C_MSG_ADDR_10_BITS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But for your other question, I2C uses either 7 or 10 bit addressing, 7 bit being the default.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So if you&amp;#39;re using 7 bit addressing you should not use&amp;nbsp;I2C_MSG_ADDR_10_BITS, but have the default setting instead.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Einar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>