<?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>topic ADC IMX6UL VF610 C/C++ Example code in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ADC-IMX6UL-VF610-C-C-Example-code/m-p/681868#M105338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am developping an ADC app on Qt5 using an embedded based on IMX6UL. I would like to know how must&amp;nbsp;I configure and use the driver in order to read the ADC input values programing in C or C++.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Joaquim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2017 06:55:13 GMT</pubDate>
    <dc:creator>jmartinez1</dc:creator>
    <dc:date>2017-06-09T06:55:13Z</dc:date>
    <item>
      <title>ADC IMX6UL VF610 C/C++ Example code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-IMX6UL-VF610-C-C-Example-code/m-p/681868#M105338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am developping an ADC app on Qt5 using an embedded based on IMX6UL. I would like to know how must&amp;nbsp;I configure and use the driver in order to read the ADC input values programing in C or C++.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Joaquim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 06:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-IMX6UL-VF610-C-C-Example-code/m-p/681868#M105338</guid>
      <dc:creator>jmartinez1</dc:creator>
      <dc:date>2017-06-09T06:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: ADC IMX6UL VF610 C/C++ Example code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-IMX6UL-VF610-C-C-Example-code/m-p/681869#M105339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joaquim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In i.MX_Linux_Reference_Manual.pdf, software interface has been described, see it, please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&amp;nbsp; Weidong Sun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Fri, 09 Jun 2017 07:40:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-IMX6UL-VF610-C-C-Example-code/m-p/681869#M105339</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2017-06-09T07:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: ADC IMX6UL VF610 C/C++ Example code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-IMX6UL-VF610-C-C-Example-code/m-p/681870#M105340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wigros,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the console of my embedded system, I can do conversions without problems using "cat in_voltage0_raw". So I understand I have not make the menuconfig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before to post, I read the reference manual and I found the driver in my build directory, but in the manual there isn't any explanaition about how use the driver in C/C++. I included the VF610_adc.c file in my project, in order to see how the functions are and if there is any example of configuration/use. I can see several functions, but I looking for a main.c where can help me to see how the ADC is configured and used. The first problem I had is that the headers files included in VF610_adc.c are not found when I compile my project. Please see bellow.&amp;nbsp;I have many doubts because I am not expert in linux embedded systems: the first is where I can found the headers files, and the second an example of use of the driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/module.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/platform_device.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/interrupt.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/delay.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/kernel.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/slab.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/io.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/clk.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/completion.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/of.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/of_irq.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/regulator/consumer.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/of_platform.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/err.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/iio/iio.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/iio/sysfs.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #000080;"&gt;#include&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;lt;linux/iio/driver.h&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 08:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-IMX6UL-VF610-C-C-Example-code/m-p/681870#M105340</guid>
      <dc:creator>jmartinez1</dc:creator>
      <dc:date>2017-06-09T08:59:21Z</dc:date>
    </item>
  </channel>
</rss>

