<?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>accelerometer driver in c++</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10463/accelerometer-driver-in-c</link><description>We are trying to integrate an accelerator driver with the code written in c++ with example code from twi sensor from the SDK 0.10 for the nRF51, which is written in c. Will there be any issues porting the code to c++? 
 Also, we are using the example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Feb 2016 11:50:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10463/accelerometer-driver-in-c" /><item><title>RE: accelerometer driver in c++</title><link>https://devzone.nordicsemi.com/thread/38883?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 11:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:436987bc-132e-4962-8540-dc70273ef13b</guid><dc:creator>Ric</dc:creator><description>&lt;p&gt;Hi,
Can you please upload a sample project. I&amp;#39;m trying to do something similar where I&amp;#39;m trying to combine C and C++ drivers
Thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: accelerometer driver in c++</title><link>https://devzone.nordicsemi.com/thread/38882?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 03:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb179f8-b17a-4ff8-bcb5-9cd5fd1fb073</guid><dc:creator>JudePinto</dc:creator><description>&lt;p&gt;using the &amp;quot;extern&amp;quot; keyword helped bridge the gap between the c files and the c++ driver&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: accelerometer driver in c++</title><link>https://devzone.nordicsemi.com/thread/38884?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 11:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d568d9d-f131-40e3-9b5a-2172853a4565</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You should not have any issue mixing and matching C++ and C code, as long as all files that use C++ code are compiled with the C++ compiler (in Keil this happens automatically for .cpp files, but if your main.c file also uses C++ modules you have to configure it manually).&lt;/p&gt;
&lt;p&gt;Converting a C file to C++ is as easy as enabling the C++ compiler, at which point you can start writing C++ code.&lt;/p&gt;
&lt;p&gt;The driver used by the GTT examples were customized specifically for the GTT, and is slightly different from the official SDK driver. I would recommend sticking to the one in the SDK, as this is the one being maintained going forward.&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>