<?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>TWI SENSOR library explained</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94262/twi-sensor-library-explained</link><description>Hello, 
 to use the twi sensor library should I define for each sensor an own NRF_TWI_SENSOR_DEF? 
 I found not really a documentation about the usage of the twi sensor library. And each NRF_TWI_SENSOR_DEF referres then of couse to the twi transaction</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Nov 2022 15:32:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94262/twi-sensor-library-explained" /><item><title>RE: TWI SENSOR library explained</title><link>https://devzone.nordicsemi.com/thread/397936?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 15:32:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a10f3805-ac7b-40cf-b895-83c6706f4bee</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Julian,&lt;/p&gt;
&lt;p&gt;I totally agree that we are lacking documentation on this library. In fact, I can&amp;#39;t see that we are actually using the library in any of our examples nor do I have any experience with using it myself. I see that the driver states that you should have one instance per TWI bus, but I can see from some of the external drivers that use this library that you should have one instance per sensor on the bus. For example:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669649447837v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And yes, the nrf_twi_sensor module is dependent on the twi_manager being initialized before you use it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>