<?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>nRF52840 SDK16 - TWI Driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65245/nrf52840-sdk16---twi-driver</link><description>Hi everyone, I am using TWI driver to communicate with I2C. I have write the following I2C read function. 
 
 Now I want to write a second I2C function with some modifications. I will use the same TWI instance for it? For example: 
 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Aug 2020 08:39:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65245/nrf52840-sdk16---twi-driver" /><item><title>RE: nRF52840 SDK16 - TWI Driver</title><link>https://devzone.nordicsemi.com/thread/266651?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 08:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a367d97-bfe7-4063-bbf1-c74dd7268bab</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Thanks Kenneth!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 - TWI Driver</title><link>https://devzone.nordicsemi.com/thread/266632?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 07:49:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:620c56b5-e227-4fa0-a01f-48f1a02b56b6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the same twi instance (m_twi) to read or write to a twi slave device multiple times, the same twi instance can also be used to read or write to several twi slaves devices, just make sure the previous twi transaction is complete before you update the&amp;nbsp;dev_id and start next twi sequence.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>