<?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>clearing the receive buffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49313/clearing-the-receive-buffer</link><description>Hi, 
 I am using the nrf52832 dk 
 i am using the uart code from the sdk. 
 how do i clear the rx_buf and tx_buf (buffers) and set the pointers to the beginning of the buffers every time i clear it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jul 2019 07:26:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49313/clearing-the-receive-buffer" /><item><title>RE: clearing the receive buffer</title><link>https://devzone.nordicsemi.com/thread/196397?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 07:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23ed1ac9-24f2-48e9-a595-ec02badb79d2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;app_uart_flush() will clear both buffers. Note that the function does nothing if FIFO isn&amp;#39;t used, although this is used in the SDK 15.3 examples so that shouldn&amp;#39;t be a problem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>