<?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>Start a TWI transfer again</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14149/start-a-twi-transfer-again</link><description>Hi, I would like to handle in the twi_event_handler the case when the p_event-&amp;gt;type == NRF_DRV_TWI_EVT_EVT_DATA_NACK differently and not treat it as an internal error. 
 If there&amp;#39;s a error with the TWI transfer that result from a DATA NACK I would like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 May 2016 11:06:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14149/start-a-twi-transfer-again" /><item><title>RE: Start a TWI transfer again</title><link>https://devzone.nordicsemi.com/thread/54073?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 11:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8963108a-5272-4d92-8f9e-726b599c519a</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t really understand your question. Why can&amp;#39;t you just restart the transfer from your twi_event_handler()?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;switch(p_event-&amp;gt;type)
    {
        ...
        case NRF_DRV_TWI_EVT_DATA_NACK:
            // RESTART TRANSFER HERE
            break;
        
        ...
    }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>