<?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: DeviceDataPtr in ResetCounter and similar methods in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151748#M90</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem that Luis had, but I just cant figure out whats going on with my code.&lt;/P&gt;&lt;P&gt;Im using a TimerUnit to make 2 PWM signals, one on each channel (0 &amp;amp; 1), and I want to change the offset values by using SetOffsetTicks method.&lt;/P&gt;&lt;P&gt;My code is this one:&lt;/P&gt;&lt;P&gt; TU2_SetOffsetTicks(LDD_TDeviceData *DeviceDataPtr, uint8_t 0, TU2_TValueType 25000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cause it didn't work I tried with this one:&lt;/P&gt;&lt;P&gt; TU2_SetOffsetTicks( LDD_TDeviceData *TU2_TDeviceDataPtr, uint8_t 0, TU2_TValueType 25000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors that I get are these ones:&lt;/P&gt;&lt;P&gt;../Sources/Events.c: In function 'AS1_OnRxChar':&amp;nbsp; //*****************Im trying to use this method (SetOffsetTicks) inside this Serial communication event but even if I try to use it in the main code I still get this.&lt;/P&gt;&lt;P&gt;../Sources/Events.c:101:26: error: expected expression before 'LDD_TDeviceData'&lt;/P&gt;&lt;P&gt;mingw32-make: *** [Sources/Events.o] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Auto initialization enabled.&lt;/P&gt;&lt;P&gt;How do I fix this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 06:31:34 GMT</pubDate>
    <dc:creator>kiven</dc:creator>
    <dc:date>2014-05-21T06:31:34Z</dc:date>
    <item>
      <title>DeviceDataPtr in ResetCounter and similar methods</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151745#M87</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the TimerUnit_LDD and I enabled the ResetCounter method to generate it's code. I then dragged the ResetCounter method from the Component window on the right, on the drop-down list of the TimerUnit_LDD, to insert it in my code. This generated the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ComponentName_ResetCounter();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With no arguments. However, when I try to build my code it returns the error "too few arguments to function ComponentName_ResetCounter". Hovering over the method in the Component Inspector, I see that this function requires the argument "LDD_TDeviceData *DeviceDataPtr" and that it is a "Device data structure pointer returned by Init method". However, looking through the code I can't seem to find what this data pointer value is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is a simple method which I could do on my own just assigning a 0 to the CNT register, but this data pointer seems to be necessary for other more complicated methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have some reference as to what this pointer is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, how can the EventMask values be set and used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Processor Expert, so these are probably very basic questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 14:41:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151745#M87</guid>
      <dc:creator>luisgallegos</dc:creator>
      <dc:date>2012-10-25T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: DeviceDataPtr in ResetCounter and similar methods</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151746#M88</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess I wasn't looking close enough and missed that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 21:54:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151746#M88</guid>
      <dc:creator>luisgallegos</dc:creator>
      <dc:date>2012-10-25T21:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: DeviceDataPtr in ResetCounter and similar methods</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151747#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can find more details on method usage in the component´s help or in FSL info-center web:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/infocenter/index.jsp?topic=%2Fcom.freescale.doc.mcu.processorexpert.components%2Fhtml%2FBeans%2FTimerUnit_LDD%2FTimerUnit_LDD.html" title="http://www.freescale.com/infocenter/index.jsp?topic=%2Fcom.freescale.doc.mcu.processorexpert.components%2Fhtml%2FBeans%2FTimerUnit_LDD%2FTimerUnit_LDD.html"&gt;Freescale Technical Information Center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way, that is not mentioned in the help, could be usage of the DeviceDataPtr defined in the component´s header file if Autoinitialization property is set to yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 05:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151747#M89</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2012-10-26T05:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: DeviceDataPtr in ResetCounter and similar methods</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151748#M90</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem that Luis had, but I just cant figure out whats going on with my code.&lt;/P&gt;&lt;P&gt;Im using a TimerUnit to make 2 PWM signals, one on each channel (0 &amp;amp; 1), and I want to change the offset values by using SetOffsetTicks method.&lt;/P&gt;&lt;P&gt;My code is this one:&lt;/P&gt;&lt;P&gt; TU2_SetOffsetTicks(LDD_TDeviceData *DeviceDataPtr, uint8_t 0, TU2_TValueType 25000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cause it didn't work I tried with this one:&lt;/P&gt;&lt;P&gt; TU2_SetOffsetTicks( LDD_TDeviceData *TU2_TDeviceDataPtr, uint8_t 0, TU2_TValueType 25000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors that I get are these ones:&lt;/P&gt;&lt;P&gt;../Sources/Events.c: In function 'AS1_OnRxChar':&amp;nbsp; //*****************Im trying to use this method (SetOffsetTicks) inside this Serial communication event but even if I try to use it in the main code I still get this.&lt;/P&gt;&lt;P&gt;../Sources/Events.c:101:26: error: expected expression before 'LDD_TDeviceData'&lt;/P&gt;&lt;P&gt;mingw32-make: *** [Sources/Events.o] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Auto initialization enabled.&lt;/P&gt;&lt;P&gt;How do I fix this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 06:31:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151748#M90</guid>
      <dc:creator>kiven</dc:creator>
      <dc:date>2014-05-21T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: DeviceDataPtr in ResetCounter and similar methods</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151749#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You seem to have incorrect syntax of the function call. The function needs to be called without the parameter type names.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;TU2_SetOffsetTicks(TU2_DeviceData, 0, 25000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 13:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DeviceDataPtr-in-ResetCounter-and-similar-methods/m-p/151749#M91</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2014-05-30T13:49:58Z</dc:date>
    </item>
  </channel>
</rss>

