<?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>[SPIS driver] How can I response different data (Tx buffer) when I receive data (Rx buffer) from SPI Master ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69633/spis-driver-how-can-i-response-different-data-tx-buffer-when-i-receive-data-rx-buffer-from-spi-master</link><description>Hi Nordic 
 
 SInce this is my first time to develop Nordic chip and implement SPIS driver, Therefore i am not so familiar with Nordic API. I would really appreciate it if someone would give me hint regarding this question. 
 
 Question : How can I response</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Dec 2020 02:22:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69633/spis-driver-how-can-i-response-different-data-tx-buffer-when-i-receive-data-rx-buffer-from-spi-master" /><item><title>RE: [SPIS driver] How can I response different data (Tx buffer) when I receive data (Rx buffer) from SPI Master ?</title><link>https://devzone.nordicsemi.com/thread/285733?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 02:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a9849b-9794-4769-a661-aba7d9cb531a</guid><dc:creator>Sylar</dc:creator><description>&lt;p&gt;Hi Kenneth&lt;/p&gt;
&lt;p&gt;Thanks for your explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SPIS driver] How can I response different data (Tx buffer) when I receive data (Rx buffer) from SPI Master ?</title><link>https://devzone.nordicsemi.com/thread/285652?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 13:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ff1b34e-3ee0-4c72-b7b0-33472e850209</guid><dc:creator>Kenneth</dc:creator><description>[quote userid="97298" url="~/f/nordic-q-a/69633/spis-driver-how-can-i-response-different-data-tx-buffer-when-i-receive-data-rx-buffer-from-spi-master"]&lt;span&gt;The callback handler function will be called after every successful buffer setup and every completed transfer. New buffers must be set by calling&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__spis.html#ga9dc2663f350599c798b2bf6853851b1b"&gt;nrf_drv_spis_buffers_set&lt;/a&gt;&lt;span&gt;&amp;nbsp;after every finished transaction.&lt;/span&gt;[/quote]
&lt;p&gt;That is correct, so basically the&amp;nbsp;master spi&amp;nbsp;device need to send two spi transactions, the first spi transaction&amp;nbsp;can be analyzed by the spi slave and&amp;nbsp;the spi slave will then update the&amp;nbsp;buffers for the second spi transaction. The first spi transaction can be 1-2bytes, while the second spi transaction can then be much longer depending for instance on the content of the first spi transaction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>