<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>P-Series中的主题 Re: i am unable to write and read registers from  slve Device(Accelometer LIS331DLH)perticular location ?</title>
    <link>https://community.nxp.com/t5/P-Series/i-am-unable-to-write-and-read-registers-from-slve-Device/m-p/821606#M4540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the following pages:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/torvalds/linux/blob/master/include/linux/i2c-smbus.h" title="https://github.com/torvalds/linux/blob/master/include/linux/i2c-smbus.h"&gt;linux/i2c-smbus.h at master · torvalds/linux · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/14992774/fatal-error-i2c-smbus-h-no-such-file-or-directory" title="https://stackoverflow.com/questions/14992774/fatal-error-i2c-smbus-h-no-such-file-or-directory"&gt;c - fatal error: i2c/smbus.h: No such file or directory? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/25159064/why-are-i2c-smbus-function-not-available-i2c-embedded-linux/25852672" title="https://stackoverflow.com/questions/25159064/why-are-i2c-smbus-function-not-available-i2c-embedded-linux/25852672"&gt;c++ - Why are i2c_smbus function not available? (I2C – Embedded Linux) - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2018 06:07:20 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2018-08-08T06:07:20Z</dc:date>
    <item>
      <title>i am unable to write and read registers from  slve Device(Accelometer LIS331DLH)perticular location ?</title>
      <link>https://community.nxp.com/t5/P-Series/i-am-unable-to-write-and-read-registers-from-slve-Device/m-p/821604#M4538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we are using P2020 Processor with the linux platform,&amp;nbsp; I2C interface with LIS331DLH Accelerometer sensor&lt;/P&gt;&lt;P&gt;Actually i&amp;nbsp; am writing the application in the user level&amp;nbsp; to read Accelerometer LIS331DLH sensor data X-axis, Y-axis,Z-axis Value&lt;/P&gt;&lt;P&gt;here i am facing issue, &amp;nbsp; i want write the data in particular address to Enable (EN_X_Y_Z); //CTRL_REG1 register enable X-axis, Y-axis,Z-axis in normal mode ,&amp;nbsp; how we read the data from specific register address? kindly guide me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;CTRL_REG1= 0x20;&amp;nbsp; //&amp;nbsp;&amp;nbsp; Register address&lt;/P&gt;&lt;P&gt;&amp;nbsp; EN_X_Y_Z= 0x27;&amp;nbsp; // Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i write 0x27 data in the CTRL Register1 address location 0x20 ,please tell me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unsigned char reg_buf[5];&lt;/P&gt;&lt;P&gt;buf[0]= 0x30;&amp;nbsp; // write address&lt;/P&gt;&lt;P&gt;buf[0]=0x20;&amp;nbsp; //&amp;nbsp; register address&lt;/P&gt;&lt;P&gt;buf[1]=0x27;&amp;nbsp; // data&lt;/P&gt;&lt;P&gt;write(fd, reg_buf, sizeof(buf));&amp;nbsp; // for your reference i have attached my program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how we write, read I2C register's Data using system call, kindly help me&amp;nbsp; i am hanging here i am not able to read Accelerometer sensor registers from particular location data , please send sample program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 04:30:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/i-am-unable-to-write-and-read-registers-from-slve-Device/m-p/821604#M4538</guid>
      <dc:creator>nareshpuli</dc:creator>
      <dc:date>2018-08-06T04:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: i am unable to write and read registers from  slve Device(Accelometer LIS331DLH)perticular location ?</title>
      <link>https://community.nxp.com/t5/P-Series/i-am-unable-to-write-and-read-registers-from-slve-Device/m-p/821605#M4539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Look at the following pages about using I2C under Linux:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.kernel.org%2Fdoc%2FDocumentation%2Fi2c%2Fdev-interface" rel="nofollow" target="_blank"&gt;https://www.kernel.org/doc/Documentation/i2c/dev-interface&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fshenki%2Flinux-i2c-example" rel="nofollow" target="_blank"&gt;https://github.com/shenki/linux-i2c-example&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fev3dev%2Fi2c-tools" rel="nofollow" target="_blank"&gt;https://github.com/ev3dev/i2c-tools&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.haifux.org%2Flectures%2F258%2Fgpio_spi_i2c_userspace.pdf" rel="nofollow" target="_blank"&gt;http://www.haifux.org/lectures/258/gpio_spi_i2c_userspace.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 03:06:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/i-am-unable-to-write-and-read-registers-from-slve-Device/m-p/821605#M4539</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2018-08-08T03:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: i am unable to write and read registers from  slve Device(Accelometer LIS331DLH)perticular location ?</title>
      <link>https://community.nxp.com/t5/P-Series/i-am-unable-to-write-and-read-registers-from-slve-Device/m-p/821606#M4540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the following pages:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/torvalds/linux/blob/master/include/linux/i2c-smbus.h" title="https://github.com/torvalds/linux/blob/master/include/linux/i2c-smbus.h"&gt;linux/i2c-smbus.h at master · torvalds/linux · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/14992774/fatal-error-i2c-smbus-h-no-such-file-or-directory" title="https://stackoverflow.com/questions/14992774/fatal-error-i2c-smbus-h-no-such-file-or-directory"&gt;c - fatal error: i2c/smbus.h: No such file or directory? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/25159064/why-are-i2c-smbus-function-not-available-i2c-embedded-linux/25852672" title="https://stackoverflow.com/questions/25159064/why-are-i2c-smbus-function-not-available-i2c-embedded-linux/25852672"&gt;c++ - Why are i2c_smbus function not available? (I2C – Embedded Linux) - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 06:07:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/i-am-unable-to-write-and-read-registers-from-slve-Device/m-p/821606#M4540</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2018-08-08T06:07:20Z</dc:date>
    </item>
  </channel>
</rss>

