<?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>Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52680/confusion-reading-fifo-of-max30101-with-nrf51</link><description>Hello, 
 I have configured max30101 with nrf51 and I want to read the fifo of max30101. The fifo can contain 32 samples and the size of each sample could vary from 3-9 bytes depending upon the number of bytes. My question is if I burst read the fifo by</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Sep 2019 16:38:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52680/confusion-reading-fifo-of-max30101-with-nrf51" /><item><title>RE: Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/thread/212359?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 16:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8285b29-cc26-480d-9519-4243b02da97d</guid><dc:creator>Muhammad Nabeel</dc:creator><description>&lt;p&gt;Can I program nrf51422 DK and custom nrf51 chip using arduino ide?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/thread/212356?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 16:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e13c6c5-2b32-4fe6-96d4-230a23bda985</guid><dc:creator>Muhammad Nabeel</dc:creator><description>&lt;p&gt;Reply Please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/thread/212352?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 15:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f86aba56-96ec-4384-bdfb-19ef012d6ffd</guid><dc:creator>Muhammad Nabeel</dc:creator><description>&lt;p&gt;Sorry for so much ambiguity. The above code in black background is from arduino library. I am using SDK 12.3.0 and the function&lt;pre class="ui-code" data-mode="c_cpp"&gt;// The method I am using to read the FIFO
nrf_drv_twi_tx(&amp;amp;twi_ins, MAX30101_ADDRESS, &amp;amp;MAX30101_FIFODATA, sizeof(MAX30101_FIFODATA), true);
nrf_drv_twi_rx(&amp;amp;twi_ins, MAX30101_ADDRESS, data, 3/*Read only 1 byte*/);
nrf_delay_ms(1);


// Here is the nrf_drv_twi_rx function

ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance,
                          uint8_t               address,
                          uint8_t *             p_data,
                          uint8_t               length)
{
    nrf_drv_twi_xfer_desc_t xfer = NRF_DRV_TWI_XFER_DESC_RX(address, p_data, length);
    return nrf_drv_twi_xfer(p_instance, &amp;amp;xfer, 0);
}&lt;/pre&gt; and code is&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/thread/212351?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 15:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419b8fa1-5ca9-4ee9-a266-6b96e02c87db</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/52680/confusion-reading-fifo-of-max30101-with-nrf51/212349"]That&amp;#39;s not a Nordic SDK function[/quote]
&lt;p&gt;But&amp;nbsp;&lt;span&gt;&lt;strong&gt;nrf_drv_twi_rx()&lt;/strong&gt; is documented here&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#gab135f4b02e2f7dcd8db59f17063617ff"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#gab135f4b02e2f7dcd8db59f17063617ff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sadly, the documentation is not very helpful, and it seems to have be just a copy &amp;amp; paste from the _tx function - without updating!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t really explain what happens if you request more data than the slave is going to send, or &lt;em&gt;vice-versa&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/thread/212349?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 15:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd692050-3001-49e0-bc98-1c5a40671d74</guid><dc:creator>awneil</dc:creator><description>[quote userid="74022" url="~/f/nordic-q-a/52680/confusion-reading-fifo-of-max30101-with-nrf51/212346"]the nrf_drv_rx() function[/quote]
&lt;p&gt;I don&amp;#39;t see that in your code?&lt;/p&gt;
&lt;p&gt;That&amp;#39;s not a Nordic SDK function - is it?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3124._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/thread/212346?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 15:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c56d5b46-7fe0-4408-b0af-6e81eccf1624</guid><dc:creator>Muhammad Nabeel</dc:creator><description>&lt;p&gt;Thanks for the reply. Yes max30101 would not have issue with any microcontroller. My question was actually about the nrf_drv_rx() function. Does reading data of n bytes lenghth means something like this. This is the snippet of the code of Arduino library written for max30101.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0184.Capture.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confusion reading FIFO of max30101 with nrf51</title><link>https://devzone.nordicsemi.com/thread/212323?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 14:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcb3224d-1db6-4f08-a7c3-d8085285b07c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The&amp;nbsp;&lt;span&gt;MAX30101&amp;nbsp;neither knows nor cares what microcontroller you use - its behaviour will be the same irrespective.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;For clarification of the behaviour of &lt;strong&gt;Maxim&amp;#39;s&lt;/strong&gt; chip,&amp;nbsp; you really need to &lt;strong&gt;ask &lt;em&gt;Maxim&lt;/em&gt;&lt;/strong&gt; - it has nothing to do with Nordic!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://maximsupport.microsoftcrmportals.com/en-US/knowledgebase/"&gt;https://maximsupport.microsoftcrmportals.com/en-US/knowledgebase/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://maximsupport.microsoftcrmportals.com/en-US/support-center/"&gt;https://maximsupport.microsoftcrmportals.com/en-US/support-center/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you looked at the resources Maxim provide?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.maximintegrated.com/en/products/interface/sensor-interface/MAX30101.html/tb_tab2"&gt;https://www.maximintegrated.com/en/products/interface/sensor-interface/MAX30101.html/tb_tab2&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>