<?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 Re: Capture_LDD component - SelectCaptureEdge method is volatile? in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393378#M3064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have answered your question in the discussion thread &lt;A href="https://community.nxp.com/message/540398"&gt;Re: Capture_LDD SelectCaptureEdge&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 08:54:22 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2015-07-29T08:54:22Z</dc:date>
    <item>
      <title>Capture_LDD component - SelectCaptureEdge method is volatile?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393375#M3061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is a bug or intended operation...&lt;/P&gt;&lt;P&gt;If I call the SelectCaptureEdge() method with an edge setting other than what I entered under Properties -&amp;gt; Event -&amp;gt; Edge, and then I call the Enable() method, the edge setting reverts to what I put under Properties -&amp;gt; Event -&amp;gt; Edge rather than staying what I set in SelectCaptureEdge().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I changed this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LDD_TError CapIR38_SelectCaptureEdge(LDD_TDeviceData *DeviceDataPtr, LDD_TimerUnit_TEdge Edge)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; CapIR38_TDeviceData *DeviceDataPrv = (CapIR38_TDeviceData *)DeviceDataPtr;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; return TU0_SelectCaptureEdge(DeviceDataPrv-&amp;gt;LinkedDeviceDataPtr, CHANNEL, Edge);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LDD_TError CapIR38_SelectCaptureEdge(LDD_TDeviceData *DeviceDataPtr, LDD_TimerUnit_TEdge Edge)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; CapIR38_TDeviceData *DeviceDataPrv = (CapIR38_TDeviceData *)DeviceDataPtr;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;STRONG&gt; DeviceDataPrv-&amp;gt;Edge = Edge;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; return TU0_SelectCaptureEdge(DeviceDataPrv-&amp;gt;LinkedDeviceDataPtr, CHANNEL, Edge);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And turned off automatic updates for this component.&lt;/P&gt;&lt;P&gt;Is this a bug or "as designed"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393375#M3061</guid>
      <dc:creator>dougturnbow</dc:creator>
      <dc:date>2015-04-09T15:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Capture_LDD component - SelectCaptureEdge method is volatile?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393376#M3062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Doug,&lt;/P&gt;&lt;P&gt;I have analyzed the source code and it seems that the DeviceDataPrv-&amp;gt;Edge is not used by the driver&amp;nbsp; (MK64FN1M0, FTM device used). There are several variants of the driver for devices across all CPU families but the Capter_LDD API is static. Therefore, for example, the FTM device variant of this driver do not use the Edge of the Capture_LDD TDeviceData structure.&lt;/P&gt;&lt;P&gt;You can freeze the generate code of the Capture_LDD driver (in the Components window, open the context menu of the Capture_LDD component and select Code Generation &amp;gt; Don't write Generated Component Modules) and modify the generated code (e.g. do optimizations).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Dont write generated code_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51183i2F716579893CE83F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dont write generated code_3.png" alt="Dont write generated code_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 12:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393376#M3062</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-04-10T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Capture_LDD component - SelectCaptureEdge method is volatile?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393377#M3063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Doug,&lt;/P&gt;&lt;P&gt;I have the same problem with the KL25Z. I set in &lt;STRONG style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Properties -&amp;gt; Event -&amp;gt; Edge&lt;/STRONG&gt;, for exemple 'rising edge', and I want to change it with the function &lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;STRONG&gt;SelectCaptureEdge&lt;/STRONG&gt; &lt;/EM&gt;during the execution of my code.&lt;/P&gt;&lt;P&gt;Buit seems that &lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;STRONG&gt;SelectCaptureEdge &lt;/STRONG&gt;&lt;/EM&gt;doesn't work, I can't catch the falling edge even I use &lt;STRONG&gt;Cap1_SelectCaptureEdge(Cap1DeviceData,EDGE_BOTH);&lt;/STRONG&gt;or &lt;STRONG&gt;Cap1_SelectCaptureEdge(Cap1DeviceData,EDGE_FALLING).&lt;/STRONG&gt; I&amp;nbsp; tried to add &lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DeviceDataPrv-&amp;gt;Edge = Edge; &lt;/STRONG&gt;&lt;/EM&gt;as u have used, but it didn't change anything neither.&lt;/P&gt;&lt;P&gt;So I'd like to ask if you have solved your problem. I'm very interested if you did.&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393377#M3063</guid>
      <dc:creator>xiaocongfu</dc:creator>
      <dc:date>2015-07-24T08:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Capture_LDD component - SelectCaptureEdge method is volatile?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393378#M3064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have answered your question in the discussion thread &lt;A href="https://community.nxp.com/message/540398"&gt;Re: Capture_LDD SelectCaptureEdge&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 08:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Capture-LDD-component-SelectCaptureEdge-method-is-volatile/m-p/393378#M3064</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-07-29T08:54:22Z</dc:date>
    </item>
  </channel>
</rss>

