<?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>i.MX ProcessorsのトピックRe: Is there an example program for i2c write?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-an-example-program-for-i2c-write/m-p/710530#M110473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi OH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for such example one can look at ov5640 driver example described in&lt;/P&gt;&lt;P&gt;Chapter 19 OmniVision Camera Driver attached Linux Manual and&lt;/P&gt;&lt;P&gt;sect.19.1.3 Source Code Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Thu, 19 Oct 2017 08:20:27 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-10-19T08:20:27Z</dc:date>
    <item>
      <title>Is there an example program for i2c write?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-an-example-program-for-i2c-write/m-p/710529#M110472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I need to setup the i2c by connecting the camera to the parallel port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;I need to set the camera through i2c writing, but i want to know how to set i2c in i.mx6 saber borad.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;example code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i, j, dev;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char buf[8];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((dev = open("/dev/i2c-0", O_RDWR)) &amp;lt; 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror("open failed");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ioctl(dev, I2C_SLAVE, SLAVE_ADDR) &amp;lt; 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror("ioctl failed");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; close(dev);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;//---------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;i2c write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;write(dev,buf,1) ????????&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;//---------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 06:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-an-example-program-for-i2c-write/m-p/710529#M110472</guid>
      <dc:creator>ohseohwan</dc:creator>
      <dc:date>2017-10-19T06:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an example program for i2c write?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-an-example-program-for-i2c-write/m-p/710530#M110473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi OH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for such example one can look at ov5640 driver example described in&lt;/P&gt;&lt;P&gt;Chapter 19 OmniVision Camera Driver attached Linux Manual and&lt;/P&gt;&lt;P&gt;sect.19.1.3 Source Code Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Thu, 19 Oct 2017 08:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-an-example-program-for-i2c-write/m-p/710530#M110473</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-19T08:20:27Z</dc:date>
    </item>
  </channel>
</rss>

