<?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>adxl345 i2c nrf51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21662/adxl345-i2c-nrf51422</link><description>I tried the Bjørn&amp;#39;s code : devzone.nordicsemi.com/.../ 
I didn&amp;#39;t make it... Could you help with a simple code you&amp;#39;ve tried for adxl345 ?
Thank you
Yassine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Apr 2017 14:55:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21662/adxl345-i2c-nrf51422" /><item><title>RE: adxl345 i2c nrf51422</title><link>https://devzone.nordicsemi.com/thread/85064?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 14:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67090379-c9c8-41f7-9af2-1a25ff9212eb</guid><dc:creator>Yassine31</dc:creator><description>&lt;p&gt;It&amp;#39;s working. Thank you Sigurd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adxl345 i2c nrf51422</title><link>https://devzone.nordicsemi.com/thread/85062?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 12:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d306f0b-e039-4ab7-9d04-0379362693c7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;For 2) you can add an extra NULL, e.g. &lt;code&gt;ret = nrf_drv_twi_init(&amp;amp;m_twi_master, &amp;amp;config, NULL,NULL);&lt;/code&gt;
I can upload a KEIL project that uses the drivers if you cannot get it to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adxl345 i2c nrf51422</title><link>https://devzone.nordicsemi.com/thread/85063?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 12:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f35b45-ed2c-4c83-87c2-ea7da72973dd</guid><dc:creator>Yassine31</dc:creator><description>&lt;p&gt;The version is 12.2&lt;/p&gt;
&lt;p&gt;I have two errors, which i managed, i thought that ..., but it still not working&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;error:  #140: too many arguments in function call ret_code = nrf_drv_twi_rx(p_twi_master,slave_addr, pdata, bytes, false);&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;knowing that in nrf_drv_twi.c it&amp;#39;s declared like this:&lt;/p&gt;
&lt;p&gt;ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance,
uint8_t               address,
uint8_t *             p_data,
uint8_t               length)&lt;/p&gt;
&lt;p&gt;(I deleted the &amp;#39;FALSE&amp;#39; ... )&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;error:  #165: too few arguments in function call ret = nrf_drv_twi_init(&amp;amp;m_twi_master, &amp;amp;config, NULL);&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;it&amp;#39;s declared like this:&lt;/p&gt;
&lt;p&gt;ret_code_t nrf_drv_twi_init(nrf_drv_twi_t const *        p_instance,
nrf_drv_twi_config_t const * p_config,
nrf_drv_twi_evt_handler_t    event_handler,
void *                       p_context)
So one argument is missing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adxl345 i2c nrf51422</title><link>https://devzone.nordicsemi.com/thread/85061?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 12:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9039f33-dfec-45ec-b073-5e44e6207bb8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The register addresses is close to identical, so it should not be a big problem to get it to work with ADXL345. Actually the registers that the driver uses have the exact same addresses on both ADXL375 and ADXL345.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>