<?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>Kinetis MicrocontrollersのトピックRe: adc16_config_t has no member named 'hardwareAverageMode'</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/adc16-config-t-has-no-member-named-hardwareAverageMode/m-p/1415675#M62459</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/142540"&gt;@aaronminner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to apologize for the delay, we are experiencing a high volume of questions these days. I really appreciate your patience.&lt;/P&gt;
&lt;P&gt;Regarding your issue, I see that you probably are missing to add the pointer to the structure with the operator -&amp;gt; in order to avoid the error as shown as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PabloAvalos_0-1645151322218.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170999i230FCAE2753CCC94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PabloAvalos_0-1645151322218.png" alt="PabloAvalos_0-1645151322218.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, please let me know if you have more questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 02:29:40 GMT</pubDate>
    <dc:creator>PabloAvalos</dc:creator>
    <dc:date>2022-02-18T02:29:40Z</dc:date>
    <item>
      <title>adc16_config_t has no member named 'hardwareAverageMode'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/adc16-config-t-has-no-member-named-hardwareAverageMode/m-p/1409253#M62355</link>
      <description>&lt;P&gt;I'm using MCUXpresso v11.5.0, and SDK_2.x_FRDM-K66F 2.11.0. &amp;nbsp;My board is a FRDM-K66F.&lt;/P&gt;&lt;P&gt;For ADC0 and ADC1, both of which have "hardware averaging disabled" in the Peripherals configuration screen, I get:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;.hardwareAverageMode = &lt;/SPAN&gt;&lt;SPAN&gt;kADC16_HardwareAverageDisabled&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;in the generated "peripherals.c" file. &amp;nbsp;However, that gives me a compiler error:&lt;/P&gt;&lt;PRE&gt;../board/peripherals.c:400:4: error: 'adc16_config_t' {aka 'const struct _adc16_config'} has no member named 'hardwareAverageMode'&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;400 | &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;.hardwareAverageMode = kADC16_HardwareAverageDisabled,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;^~~~~~~~~~~~~~~~~~~&lt;/PRE&gt;&lt;P&gt;I've commented it out so I can compile, but I'm perplexed that I'm getting this error at all in a MCUXpresso-generated file. &amp;nbsp;It also risks breaking the XML needed by the Peripherals page.&lt;/P&gt;&lt;P&gt;Any suggestion for why this is happening, and how to fix it?&lt;/P&gt;&lt;P&gt;Thanks, Aaron&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 07:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/adc16-config-t-has-no-member-named-hardwareAverageMode/m-p/1409253#M62355</guid>
      <dc:creator>aaronminner</dc:creator>
      <dc:date>2022-02-06T07:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: adc16_config_t has no member named 'hardwareAverageMode'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/adc16-config-t-has-no-member-named-hardwareAverageMode/m-p/1415675#M62459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/142540"&gt;@aaronminner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to apologize for the delay, we are experiencing a high volume of questions these days. I really appreciate your patience.&lt;/P&gt;
&lt;P&gt;Regarding your issue, I see that you probably are missing to add the pointer to the structure with the operator -&amp;gt; in order to avoid the error as shown as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PabloAvalos_0-1645151322218.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170999i230FCAE2753CCC94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PabloAvalos_0-1645151322218.png" alt="PabloAvalos_0-1645151322218.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, please let me know if you have more questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 02:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/adc16-config-t-has-no-member-named-hardwareAverageMode/m-p/1415675#M62459</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-02-18T02:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: adc16_config_t has no member named 'hardwareAverageMode'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/adc16-config-t-has-no-member-named-hardwareAverageMode/m-p/1415768#M62463</link>
      <description>&lt;P&gt;Thanks for getting back to me, Pablo. &amp;nbsp;Actually, it turns out it's more related to this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*!
 * @brief ADC16 converter configuration.
 */
typedef struct _adc16_config
{
    adc16_reference_voltage_source_t referenceVoltageSource; /*!&amp;lt; Select the reference voltage source. */
    adc16_clock_source_t clockSource;                        /*!&amp;lt; Select the input clock source to converter. */
    bool enableAsynchronousClock;                            /*!&amp;lt; Enable the asynchronous clock output. */
    adc16_clock_divider_t clockDivider;                      /*!&amp;lt; Select the divider of input clock source. */
    adc16_resolution_t resolution;                           /*!&amp;lt; Select the sample resolution mode. */
    adc16_long_sample_mode_t longSampleMode;                 /*!&amp;lt; Select the long sample mode. */
    bool enableHighSpeed;                                    /*!&amp;lt; Enable the high-speed mode. */
    bool enableLowPower;                                     /*!&amp;lt; Enable low power. */
    bool enableContinuousConversion;                         /*!&amp;lt; Enable continuous conversion mode. */
#if defined(FSL_FEATURE_ADC16_HAS_HW_AVERAGE) &amp;amp;&amp;amp; FSL_FEATURE_ADC16_HAS_HW_AVERAGE
    adc16_hardware_average_mode_t hardwareAverageMode; /*!&amp;lt; Set hardware average mode. */
#endif                                                 /* FSL_FEATURE_ADC16_HAS_HW_AVERAGE */
} adc16_config_t;&lt;/LI-CODE&gt;&lt;P&gt;This is in fsl_adc16.h. &amp;nbsp;I don't recall doing anything in particular to make &lt;FONT color="#FF0000"&gt;FSL_FEATURE_ADC16_HAS_HW_AVERAGE&lt;/FONT&gt; defined, but my project is now compiling without any work-arounds for this particular aspect. &amp;nbsp;It might have been when I tried to clone a 2.8 SDK project - which worked as expected - and then updated the SDK to 2.11. &amp;nbsp;At some point, I stopped trying to do that - it was too much hassle and never worked correctly - and just created a 2.11 project, instead. &amp;nbsp;At any rate, yeah, I'll close this issue, now.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 05:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/adc16-config-t-has-no-member-named-hardwareAverageMode/m-p/1415768#M62463</guid>
      <dc:creator>aaronminner</dc:creator>
      <dc:date>2022-02-18T05:37:20Z</dc:date>
    </item>
  </channel>
</rss>

