<?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>I don&amp;#39;t understand the role of &amp;quot;data.done.p_buffer[]&amp;quot;.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84968/i-don-t-understand-the-role-of-data-done-p_buffer</link><description>Hello I am implementing a battery voltage monitoring function using nrf52840. I am a beginner in hardware development. As the first step of this function, I am currently implementing a function to read the voltage value. I am using the function &amp;quot;es_battery_voltage_get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Feb 2022 09:27:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84968/i-don-t-understand-the-role-of-data-done-p_buffer" /><item><title>RE: I don't understand the role of "data.done.p_buffer[]".</title><link>https://devzone.nordicsemi.com/thread/354071?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 09:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a6f1f63-7426-4899-a3e2-0e62e84468a0</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;The&amp;nbsp;p_evt-&amp;gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/structnrfx__saadc__done__evt__t.html"&gt;data.done.p_buffer&lt;/a&gt; is a pointer to the samples created by the SAADC&amp;#39;s sampling.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/saadc.html?cp=4_0_0_5_22_3#saadc_easydma"&gt;Each SAADC sample is 2 bytes&lt;/a&gt;.&lt;br /&gt;How large is the SAADC&amp;#39;s buffer? If it is only 1 then you are accessing random data by trying to read index 1.&lt;br /&gt;Furthermore, the nRF52840 DK does not need the&amp;nbsp;DIODE_FWD_VOLT_DROP_MILLIVOLTS offset since it uses power switches rather than diodes.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>