<?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>How to set the I2C addressing to be 7 bits</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118135/how-to-set-the-i2c-addressing-to-be-7-bits</link><description>So from my understanding from the zephyr documentation, if I want to use 7 bit I2C addressing, don&amp;#39;t set I2C_ADDR_10_BITS. I am wondering how I can make sure this macro is not set. I am unsure where or where not to set it.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 26 Jan 2025 17:14:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118135/how-to-set-the-i2c-addressing-to-be-7-bits" /><item><title>RE: How to set the I2C addressing to be 7 bits</title><link>https://devzone.nordicsemi.com/thread/520097?ContentTypeID=1</link><pubDate>Sun, 26 Jan 2025 17:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860d64d3-2284-4554-9ff6-5c6ec3e0ff11</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;You don&amp;#39;t&amp;nbsp;necessarily have to set it in the main function. You&amp;nbsp;can&amp;nbsp;set this flag for each of those individual I2C transactions&amp;nbsp;which needs 10 bit addressing, so&amp;nbsp;in the part of your code where you&amp;#39;re setting up I2C communications.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the I2C addressing to be 7 bits</title><link>https://devzone.nordicsemi.com/thread/520029?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 16:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079a3f51-7fdc-416a-8ce3-fc4062f9b907</guid><dc:creator>ReginaA101</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;Where can I set I2C_MSG_ADDR_10_BITS? Do I set it in main or something along those lines?&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Regina&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the I2C addressing to be 7 bits</title><link>https://devzone.nordicsemi.com/thread/519233?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 09:44:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:883c5607-1263-4492-8199-5db05076ab12</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Regina,&lt;/p&gt;
&lt;p&gt;If you want to use the 7 bit, then I don&amp;#39;t think you need to explicitly do anything because this is the default.&lt;/p&gt;
&lt;p&gt;You only need to set&amp;nbsp;&lt;span&gt;I2C_ADDR_10_BITS if you need 10 bits.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, I2C_ADDR_10_BITS seems to be deprecated and you need to use I2C_MSG_ADDR_10_BITS now:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84907/i2c-addressing"&gt;i2c addressing&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>