<?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>How to enable radio interrupts using SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22856/how-to-enable-radio-interrupts-using-sdk</link><description>mainc.txt 
 we can use INTENSET to enable certain events on the radio as in line 460 in mainc file attached. But how to enable this on the radio as a whole.
I basically need a couple of events like ready, address, payload, end, etc. 
 Radio interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Jun 2017 09:31:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22856/how-to-enable-radio-interrupts-using-sdk" /><item><title>RE: How to enable radio interrupts using SDK?</title><link>https://devzone.nordicsemi.com/thread/89859?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2017 09:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:154ae276-613a-402a-b1e4-392359d6561f</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Okay
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable radio interrupts using SDK?</title><link>https://devzone.nordicsemi.com/thread/89863?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2017 09:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:635656fb-291e-4df7-838f-374bff0a55ca</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;True, you have to enable interrupts globally for the peripheral in question. Sorry for missing that...&lt;br /&gt;
The code Erlend posted should work fine :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable radio interrupts using SDK?</title><link>https://devzone.nordicsemi.com/thread/89860?ContentTypeID=1</link><pubDate>Sun, 18 Jun 2017 09:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81bc9e0b-78d5-4b05-817a-6e0cb32755d7</guid><dc:creator>Erlend</dc:creator><description>&lt;p&gt;To do that I think this will do
NVIC_ClearPendingIRQ(RADIO_IRQn);
NVIC_EnableIRQ(RADIO_IRQn);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable radio interrupts using SDK?</title><link>https://devzone.nordicsemi.com/thread/89862?ContentTypeID=1</link><pubDate>Sat, 17 Jun 2017 14:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38c50bda-0815-41f8-83a3-9c06b7dd6f49</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Don&amp;#39;t you also need to enable the radio IRQ line or something? (I think what is asked is how to do this)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable radio interrupts using SDK?</title><link>https://devzone.nordicsemi.com/thread/89861?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 20:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99ef503b-09fb-4cea-9ecf-e9ee72bef1e3</guid><dc:creator>Erlend</dc:creator><description>&lt;p&gt;Don&amp;#39;t you also need to enable the radio IRQ line or something? (I think what is asked is how to do this)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable radio interrupts using SDK?</title><link>https://devzone.nordicsemi.com/thread/89858?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 11:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c85b3b-2859-4bb9-b0cb-347b746329b6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you need the interrupt handler to respond to multiple events you need to check each event before calling the corresponding code (and then clearing the event afterwards).&lt;/p&gt;
&lt;p&gt;This is a very common snippet in the Nordic libraries, and could look something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (NRF_RADIO-&amp;gt;EVENTS_READY &amp;amp;&amp;amp; (NRF_RADIO-&amp;gt;INTENSET &amp;amp; RADIO_INTENSET_READY_Msk))
{
    NRF_RADIO-&amp;gt;EVENTS_READY = 0;
    
    ....
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you are looking to do a proprietary RF protocol I would suggest having a look at the ESB or Gazell libraries available in the SDK. Then you don&amp;#39;t have to spend time implementing things such as packet buffering, acknowledgements, auto retransmit and so forth.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>