<?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>NRF52832 SAADC HOW TO GET ADC RESULT FROM THE BUFFER !</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22751/nrf52832-saadc-how-to-get-adc-result-from-the-buffer</link><description>i m new in NRF52832, i use saadc exemple pca 10040 sdk 13.0.0, i dont now how to get adc result from the buffer because there is 2 elements in the buffer : 
 err_code = nrf_drv_saadc_buffer_convert(m_buffer_pool[0], SAMPLES_IN_BUFFER);
APP_ERROR_CHECK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jun 2017 11:36:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22751/nrf52832-saadc-how-to-get-adc-result-from-the-buffer" /><item><title>RE: NRF52832 SAADC HOW TO GET ADC RESULT FROM THE BUFFER !</title><link>https://devzone.nordicsemi.com/thread/89435?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 11:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:268402fc-8e50-413b-a245-89f3bc7d229c</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;It&amp;#39;s ok,Thank you so much Jorgen !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 SAADC HOW TO GET ADC RESULT FROM THE BUFFER !</title><link>https://devzone.nordicsemi.com/thread/89434?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 18:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbbe228a-0f68-4ad9-9a46-1d6611a0a838</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In the callback, &lt;code&gt;p_buffer&lt;/code&gt; will contain &lt;code&gt;SAMPLES_IN_BUFFER&lt;/code&gt; number of samples. They can be accessed using the index:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_event-&amp;gt;data.done.p_buffer[0] --&amp;gt; First sample
p_event-&amp;gt;data.done.p_buffer[1] --&amp;gt; Second sample
...
p_event-&amp;gt;data.done.p_buffer[SAMPLES_IN_BUFFER-1] --&amp;gt; Last sample
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 SAADC HOW TO GET ADC RESULT FROM THE BUFFER !</title><link>https://devzone.nordicsemi.com/thread/89433?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 14:08:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23fecfd5-bae3-418e-a7db-1f8693d1b1b5</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;If I take more than 1 sample, How can I get the result of each samples alone ?
Thank you for your answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 SAADC HOW TO GET ADC RESULT FROM THE BUFFER !</title><link>https://devzone.nordicsemi.com/thread/89432?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 13:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6115504a-b2b5-4ea9-8de2-751a249a13e6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SAADC peripheral support double buffering, allowing you to sample to a second buffer while processing samples in the first buffer.&lt;/p&gt;
&lt;p&gt;You can read the samples in &lt;code&gt;saadc_callback&lt;/code&gt;, from the parameter &lt;code&gt;p_event-&amp;gt;data.done.p_buffer[i]&lt;/code&gt;. Depending on the define &lt;code&gt;SAMPLES_IN_BUFFER&lt;/code&gt;, there might be multiple samples in each buffer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>