<?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>Passing Parameters to Software interrupt (EGU)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80084/passing-parameters-to-software-interrupt-egu</link><description>Hello! 
 Short question: How can I pass a parameter to a SW Interrupt? 
 Expanded question: I want the board to wait for an ammount of bytes comming from SPI, once this is done, it should activate an interrupt to allow the secundary SPI communication</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Nov 2021 13:27:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80084/passing-parameters-to-software-interrupt-egu" /><item><title>RE: Passing Parameters to Software interrupt (EGU)</title><link>https://devzone.nordicsemi.com/thread/339832?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 13:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79882c23-2c09-422d-b8fa-d6b339c85c75</guid><dc:creator>Javiehm</dc:creator><description>&lt;p&gt;SO that worked, actually what i was planning to do makes almost no sense/ if someone wants to know then send me a mail...&amp;nbsp;&lt;br /&gt;&lt;br /&gt;it is possible to manage Slave switsching with the software provided, doing what i wanted to do.... goes into interrupting the spi workflow&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Parameters to Software interrupt (EGU)</title><link>https://devzone.nordicsemi.com/thread/331676?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 10:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e6845b-50af-4037-82b9-f52fa31c80ad</guid><dc:creator>Javiehm</dc:creator><description>&lt;p&gt;Thank you! i will try this and let you know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Parameters to Software interrupt (EGU)</title><link>https://devzone.nordicsemi.com/thread/331673?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 10:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e973366-a057-4ceb-bfab-cc99eb1992a6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You need some global variables to handle this for you, e.g. that will work as kind of a state machine so when you receive the SPI interrupt you know what have been sent and received.&lt;/p&gt;
&lt;p&gt;Tip: If you are using&amp;nbsp;nrf_drv_spi_init(), then you can find that the last parameter is called &amp;#39;p_context&amp;#39;, this can be a pointer to the global varible that you will also receive in the callback spi_evt_handler().&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>