<?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>Send multiple MOSI signal to SPI and received it on m_rx_buf?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19010/send-multiple-mosi-signal-to-spi-and-received-it-on-m_rx_buf</link><description>Hello! 
 Does anyone know how can we send the multiple uint8_t MOSI signal to SPI and received the result on m_rx_buf? 
 Trying to send multiple bytes to &amp;quot;m_tx_buf&amp;quot;: 
 #define SPI_INSTANCE 0 /**&amp;lt; SPI instance index. */ //line 24
static const nrf_drv_spi_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jan 2017 14:31:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19010/send-multiple-mosi-signal-to-spi-and-received-it-on-m_rx_buf" /><item><title>RE: Send multiple MOSI signal to SPI and received it on m_rx_buf?</title><link>https://devzone.nordicsemi.com/thread/73489?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 14:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d8a7d37-7d3a-4108-95ba-e7475ac36489</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Yes, just pass this array as &lt;code&gt;p_tx_buffer&lt;/code&gt; parameter and the length as the &lt;code&gt;tx_buffer_length&lt;/code&gt; parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send multiple MOSI signal to SPI and received it on m_rx_buf?</title><link>https://devzone.nordicsemi.com/thread/73488?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 14:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e337c949-e379-47f3-b838-55de1b71fe03</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Can I send multiple byte to MOSI like this?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static uint8_t       m_tx_buf[] = {0x20, 0x00, 0x2C,0x00};           /**&amp;lt; TX buffer. *
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send multiple MOSI signal to SPI and received it on m_rx_buf?</title><link>https://devzone.nordicsemi.com/thread/73490?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 13:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20ec17cd-c6ce-44b6-8ac3-e952f233a047</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;If you want to receive 3 bytes, the last parameter (&lt;code&gt;rx_buffer_length&lt;/code&gt;) in &lt;code&gt;nrf_drv_spi_transfer(..)&lt;/code&gt; should be 3. Other than that it looks fine, do you experience any problems with this code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>