<?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>BMI160 I2C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32704/bmi160-i2c</link><description>I am developing a program with BMI160 with this libraries , but I do not know to which it refers the following code at line 5 and 6: sensor.read and sensor.write. 
 
 It is an example of Bosch Sesonrtec for I2C conetion.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Mar 2018 15:13:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32704/bmi160-i2c" /><item><title>RE: BMI160 I2C</title><link>https://devzone.nordicsemi.com/thread/125778?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 15:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a415ab20-0fe2-4c24-ba2e-8f69ced08696</guid><dc:creator>Bastien Reynard</dc:creator><description>&lt;p&gt;In bmi160_defs.h you&amp;#39;ll find the structure declaration with what you need to know...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*! Read function pointer */
bmi160_com_fptr_t read;
/*! Write function pointer */
bmi160_com_fptr_t write;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You need to implement the two functions for writing/reading bytes, and pass a pointer to these functions to the library.&lt;/p&gt;
&lt;p&gt;Check bmi160_com_fptr_t to see what the functions prototypes should look like.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;typedef int8_t (*bmi160_com_fptr_t)(uint8_t dev_addr, uint8_t reg_addr,
		uint8_t *data, uint16_t len)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>