<?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>sys_evt_dispatch What is?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21470/sys_evt_dispatch-what-is</link><description>Hi all, 
 I have understood that sys_evt_dispatch is used for all events that aren&amp;#39;t BLE but concern the softdevice. 
 I start to develop my code on gls_example, here in sys_evt_dispatch there are two function 
 static void sys_evt_dispatch(uint32_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Apr 2017 08:04:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21470/sys_evt_dispatch-what-is" /><item><title>RE: sys_evt_dispatch What is?</title><link>https://devzone.nordicsemi.com/thread/84242?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 08:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c1b205-98ac-4f44-9aae-6d8a1b92ee9d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Anna,&lt;/p&gt;
&lt;p&gt;The Peer Manager uses the FDS module, which then again uses the fstorage module. See the figure &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/lib_pm_architecture.html?cp=4_0_1_3_1_8_0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The Device Manager uses the pstorage module.
The Device Manager was removed in SDK 12, here is the release notes:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;** BLE **
- Removed the Device Manager modules. All example applications now use 
  the Peer Manager.
- Removed the pstorage module. All example applications now use the 
  fstorage module.
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sys_evt_dispatch What is?</title><link>https://devzone.nordicsemi.com/thread/84241?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 06:44:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:486da633-5111-46cf-8926-0c4d6df0fd59</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Thank you so much for the answer.
I have another doubt about fstorage and pstorgare. In some example (ble_app_hids_keyboard) use a pstorage, if i understood correctly have the same functionality, but the first is used with peer manager and the second with device manager. Is It correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sys_evt_dispatch What is?</title><link>https://devzone.nordicsemi.com/thread/84240?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 16:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e625d341-ac95-47f6-aa3f-b661565a4442</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;The fs_sys_event_handler() is needed because the peer manager uses flash storage (the fs stands for flash storage). If the peer manager writes to flash, this handler will notify the peer manager that the write is finished.&lt;/p&gt;
&lt;p&gt;Advertising doesn&amp;#39;t start until all flash events have finished. The ble_advertising_on_sys_evt function tells the advertising module when all flash events are finished, so it can start advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>