<?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>Reset UART FIFO for Rxbuffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56719/reset-uart-fifo-for-rxbuffer</link><description>Is there an instruction or function to reset UART FIFO for Rxbuffer?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jan 2020 12:22:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56719/reset-uart-fifo-for-rxbuffer" /><item><title>RE: Reset UART FIFO for Rxbuffer</title><link>https://devzone.nordicsemi.com/thread/230057?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 12:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a434fcaa-9381-492f-9c05-d31e11609733</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I assume you are using the app UART library. You can reset (flush) the UART FIFO RX buffer by calling&amp;nbsp;&lt;em&gt;app_uart_flush()&lt;/em&gt;. However, this will flush both the RX and the TX buffer. I couldn&amp;#39;t find any functions that did this on the highest abstraction layer (&lt;em&gt;app_uart.h&lt;/em&gt;). If you want only to clear the RX buffer you have to modify the files app_uart_fifo.c and app_uart.h (create a function that only runs&amp;nbsp;&lt;em&gt;app_fifo_flush(&amp;amp;m_rx_fifo);&lt;/em&gt;)&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>