<?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>BLE stack event and SYS event difference?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7198/ble-stack-event-and-sys-event-difference</link><description>Hello there, I have been trying to look at the documentation and the forum but haven&amp;#39;t been able to understand the difference between BLE stack event and SYS event. Could someone please explain this or posts links that would clarify the question. 
 Thank</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 23 May 2015 01:20:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7198/ble-stack-event-and-sys-event-difference" /><item><title>RE: BLE stack event and SYS event difference?</title><link>https://devzone.nordicsemi.com/thread/25444?ContentTypeID=1</link><pubDate>Sat, 23 May 2015 01:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6da23f9c-f207-4218-aa63-85c1354732a9</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You can&amp;#39;t trace it any further - it calls into the softdevice at that point. What are you trying to do here?&lt;/p&gt;
&lt;p&gt;I suggested looking at the softdevice eventhandler code, softdevice_handler.c which shows you how those two functions, sd_evt_get() and sd_ble_evt_get() are used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE stack event and SYS event difference?</title><link>https://devzone.nordicsemi.com/thread/25443?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 21:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e8d1f63-26b6-43d2-8739-261d2ac9a085</guid><dc:creator>Milad</dc:creator><description>&lt;p&gt;SO I have tried to look the sd_evt_get function. This is the furthest i got and in the search that I did was not able to trace the function down. Where can I find the SoC library ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a01316.html#ga8bb3db4bb663fe6deb65f92f1f0cbbcc"&gt;developer.nordicsemi.com/.../a01316.html&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;**uint32_t sd_evt_get	(	uint32_t * 	p_evt_id	)	
Gets any pending events generated by the SoC API.

The application should keep calling this function to get events, until NRF_ERROR_NOT_FOUND is returned.

Parameters
[out]	p_evt_id	Set to one of the values in NRF_SOC_EVTS, if any events are pending.
Return values
NRF_SUCCESS	An event was pending. The event id is written in the p_evt_id parameter.
NRF_ERROR_NOT_FOUND	No pending events.**
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE stack event and SYS event difference?</title><link>https://devzone.nordicsemi.com/thread/25442?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 00:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0f9fa9c-95d6-47cd-853a-781b9ee9203f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No they are functions. Although the softdevice raises SWI2 to indicate it has events waiting.&lt;/p&gt;
&lt;p&gt;If you read the softdevice eventhandler code you can see in 20 lines how this works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE stack event and SYS event difference?</title><link>https://devzone.nordicsemi.com/thread/25441?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 00:36:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:153dc5d2-a7bd-4a7e-bf01-d3baaead3448</guid><dc:creator>Milad</dc:creator><description>&lt;p&gt;Thank you for your response. Are these two hardware related interrupts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE stack event and SYS event difference?</title><link>https://devzone.nordicsemi.com/thread/25440?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 00:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33bf941b-7cfb-4289-a9d0-2e2b927118b0</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;one returns events related to bluetooth, one returns events related to everything which isn&amp;#39;t bluetooth but is still executed by the softdevice. If you look at the documentation for sd_evt_get it tells you what events are returned, there&amp;#39;s only a few, and sd_ble_evt_get returns all the rest, as sd_ble_evt_t structures (although that&amp;#39;s not clear from the function documentation particularly).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>