<?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 block read</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18828/i2c-block-read</link><description>I need to read variable length blocks from an I2C slave using a TXRX transfer. The length of the following data is given in the first read data byte, similar to SMbus Is there support for this in the TWI libraries?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Jan 2017 13:48:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18828/i2c-block-read" /><item><title>RE: I2C block read</title><link>https://devzone.nordicsemi.com/thread/72702?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 13:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:808254c3-b8b8-4c85-bfa7-6d52e796d222</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You cannot read variable length data (with the length in the first received byte) with the twi driver/libraries. From hardware perspective it is possible (see the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/twi.html?cp=2_2_0_48_4#concept_zqr_mtv_sr"&gt;TWI peripheral&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;You will have to make your own driver that supports this or in some way change the SDK driver to support this.&lt;/p&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>