<?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>SDK14 static service structures</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24860/sdk14-static-service-structures</link><description>The *_DEF macros in SDK14 define service structures as static. This means that the application level functions for a service must all be called from the same c file where the structure was defined (since the structure must be passed as a parameter). </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Sep 2017 12:44:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24860/sdk14-static-service-structures" /><item><title>RE: SDK14 static service structures</title><link>https://devzone.nordicsemi.com/thread/97909?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 12:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28415d20-92af-4bc7-8d4e-019811c3f29e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Daniel&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there are any official Nordic recommendations on this, but what I would recommend is to abstract away the service init and configuration into a separate module. This module could have a more application specific interface, abstracting away the BLE API&amp;#39;s, and then you could easily share this module between multiple files.&lt;/p&gt;
&lt;p&gt;This is similar to how it is done in our reference design software, which are typically more complex than the SDK examples.&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>