<?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 Enum usage in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Enum-usage/m-p/477231#M2128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a application in C for 5602B and I'm using enum:s in a way that I'm not absolutely&amp;nbsp; sure is OK.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enum&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;variablesStartAddress&lt;/EM&gt; = 0,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; channelMaskAddress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;variablesStartAddress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dockingParamsAdress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;channelMaskAddress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; + &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;sizeof&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;tChannelMaskParam&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For C++ I have found proof that it is OK to use previous elements in the enumeration list to asign a value to an element but not for C. This compiles and builds without problems for me but that doesn't necessarily mean that it is supported. Is this OK in CW10.6??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 06:26:43 GMT</pubDate>
    <dc:creator>bengtandersson</dc:creator>
    <dc:date>2016-04-04T06:26:43Z</dc:date>
    <item>
      <title>Enum usage</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Enum-usage/m-p/477231#M2128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a application in C for 5602B and I'm using enum:s in a way that I'm not absolutely&amp;nbsp; sure is OK.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enum&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;variablesStartAddress&lt;/EM&gt; = 0,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; channelMaskAddress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;variablesStartAddress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dockingParamsAdress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;channelMaskAddress&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; + &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;sizeof&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;tChannelMaskParam&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For C++ I have found proof that it is OK to use previous elements in the enumeration list to asign a value to an element but not for C. This compiles and builds without problems for me but that doesn't necessarily mean that it is supported. Is this OK in CW10.6??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 06:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Enum-usage/m-p/477231#M2128</guid>
      <dc:creator>bengtandersson</dc:creator>
      <dc:date>2016-04-04T06:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enum usage</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Enum-usage/m-p/477232#M2129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this construction in CW10.6 and it seems it is OK. But only remember that two elements will have the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 07:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Enum-usage/m-p/477232#M2129</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-04-04T07:47:06Z</dc:date>
    </item>
  </channel>
</rss>

