<?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>MQX Software Solutions中的主题 Re: ioctl</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/ioctl/m-p/604662#M16735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two IOCTL commands is to use two different ADC modules to read X/Y axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ioctl(tchscr_dev_ptr-&amp;gt;ADC_CHANNEL_X, ADC_IOCTL_FIRE_TRIGGER, (pointer) tchscr_dev_ptr-&amp;gt;ADC_CHANNEL_X_STRUCT-&amp;gt;trigger)&lt;/P&gt;&lt;P&gt;&amp;nbsp;will call function&amp;nbsp; _adc_ioctl (mqx/source/io/adc) , case ADC_IOCTL_FIRE_TRIGGER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are using Kinties MCU, the function will then call function _adt_trigger (mqx/source/io/adc/kadc),&lt;/P&gt;&lt;P&gt;starts channel measurement , and get the adc value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read the chapter 8 ADC driver in MQX_IO_User_Guide.pdf&amp;nbsp; for more details about ADC. This file located in MQX installation folder.&lt;/P&gt;&lt;P&gt;Freescale_MQX_4_0\doc\mqx\MQX_IO_User_Guide.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 08:22:28 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2016-09-12T08:22:28Z</dc:date>
    <item>
      <title>ioctl</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/ioctl/m-p/604661#M16734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MQX4.0 to work my touch panel, but i stock at the function&amp;nbsp;ioctl(tchscr_dev_ptr-&amp;gt;ADC_CHANNEL_X, ADC_IOCTL_FIRE_TRIGGER, (pointer) tchscr_dev_ptr-&amp;gt;ADC_CHANNEL_X_STRUCT-&amp;gt;trigger)!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ioctl.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5333i6AC20673A12D86EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="ioctl.bmp" alt="ioctl.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how this function work, please help me on this problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 09:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/ioctl/m-p/604661#M16734</guid>
      <dc:creator>wangtsungli</dc:creator>
      <dc:date>2016-09-09T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: ioctl</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/ioctl/m-p/604662#M16735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two IOCTL commands is to use two different ADC modules to read X/Y axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ioctl(tchscr_dev_ptr-&amp;gt;ADC_CHANNEL_X, ADC_IOCTL_FIRE_TRIGGER, (pointer) tchscr_dev_ptr-&amp;gt;ADC_CHANNEL_X_STRUCT-&amp;gt;trigger)&lt;/P&gt;&lt;P&gt;&amp;nbsp;will call function&amp;nbsp; _adc_ioctl (mqx/source/io/adc) , case ADC_IOCTL_FIRE_TRIGGER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are using Kinties MCU, the function will then call function _adt_trigger (mqx/source/io/adc/kadc),&lt;/P&gt;&lt;P&gt;starts channel measurement , and get the adc value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read the chapter 8 ADC driver in MQX_IO_User_Guide.pdf&amp;nbsp; for more details about ADC. This file located in MQX installation folder.&lt;/P&gt;&lt;P&gt;Freescale_MQX_4_0\doc\mqx\MQX_IO_User_Guide.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 08:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/ioctl/m-p/604662#M16735</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-12T08:22:28Z</dc:date>
    </item>
  </channel>
</rss>

