<?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>rx data length in SPI slave mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117713/rx-data-length-in-spi-slave-mode</link><description>Hello, 
 * HW: nrf52840DK 
 * SDK: ncs v2.8.0 
 * APP: spi-master-slave example 
 
 In this example, I am interested in slave rx. Seeing this example, it apears slave makes data reception by using these two functions: 
 static int spi_slave_write_test_msg</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jan 2025 11:09:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117713/rx-data-length-in-spi-slave-mode" /><item><title>RE: rx data length in SPI slave mode</title><link>https://devzone.nordicsemi.com/thread/519505?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 11:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2f53c3-bb3e-46f4-bf2e-d29b7eeeb7a6</guid><dc:creator>remtec</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think that after call &amp;quot;k_poll_signal_check(&amp;amp;spi_slave_done_sig, &amp;amp;signaled, &amp;amp;result);&amp;quot;, in &amp;quot;result&amp;quot; I have the number of bytes received from the spi_slave.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you confirm it for me?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rx data length in SPI slave mode</title><link>https://devzone.nordicsemi.com/thread/517122?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 05:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c1db32-51ff-4790-b1c9-495e8cc75b1c</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Thanks for the clarification and direction. I&amp;#39;ll do that for myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rx data length in SPI slave mode</title><link>https://devzone.nordicsemi.com/thread/517004?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 13:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f35e6d98-331c-4026-8019-3a140b6d17e8</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;As I can see the amount is used inside the zephyr nrfx spis driver, &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/7f8d857bf1f57b07e832d52263beaa23c91fef24/drivers/spi/spi_nrfx_spis.c#L284"&gt;here&lt;/a&gt;.&lt;br /&gt;However, I cannot see any way to retrevive this from the zephyr spis driver.&lt;/p&gt;
&lt;p&gt;One alternative would be that you try to modify the zephyr nrfx spis driver to give you the rx amount.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rx data length in SPI slave mode</title><link>https://devzone.nordicsemi.com/thread/516859?ContentTypeID=1</link><pubDate>Sat, 04 Jan 2025 03:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bffe41e5-6c36-45a5-9465-cb7aa86a1425</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hi Siguard,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I got this example from here:&amp;nbsp;&lt;a id="" href="https://github.com/too1/ncs-spi-master-slave-example"&gt;https://github.com/too1/ncs-spi-master-slave-example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Robin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rx data length in SPI slave mode</title><link>https://devzone.nordicsemi.com/thread/516787?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2025 12:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd4216cc-73bc-40a1-bacc-c0ad0c01dc1c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]* APP: spi-master-slave example[/quote]
&lt;p&gt;To make sure I look at the exact same sample as you:&lt;/p&gt;
&lt;p&gt;What is the path of this example?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>