<?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 Processor Expert - How to use driver in my application? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253062#M9732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CW10.4&lt;/P&gt;&lt;P&gt;MQX 4.0.1&lt;/P&gt;&lt;P&gt;TWRK60D100&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that PE allows me to drag and drop code for particular methods into my application.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the code that's generated is just a template. Where do I find the specific values to fill in?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to turn on a GPIO output pin. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Component Inspector, I've named the field "LED2".&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I drag "SetFieldValue" into my source file, I get:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO1_SetFieldValue();&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pop-up box for SetFieldValue says the syntax is:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void GPIO1_SetFieldValue(LDD_TDeviceData *DeviceDataPtr, LDD_GPIO_TBitField Field, GPIO1_TFieldValue Value);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm clueless on the four arguments I'm supposed to fill in. I assume they're automagically generated somewhere???&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;Also, I assume this I/O point is initialized somewhere. Do I have to add that code, or is it automagically included in the build?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~LMG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 15:31:36 GMT</pubDate>
    <dc:creator>lmg</dc:creator>
    <dc:date>2013-07-03T15:31:36Z</dc:date>
    <item>
      <title>Processor Expert - How to use driver in my application?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253062#M9732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CW10.4&lt;/P&gt;&lt;P&gt;MQX 4.0.1&lt;/P&gt;&lt;P&gt;TWRK60D100&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that PE allows me to drag and drop code for particular methods into my application.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the code that's generated is just a template. Where do I find the specific values to fill in?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to turn on a GPIO output pin. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Component Inspector, I've named the field "LED2".&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I drag "SetFieldValue" into my source file, I get:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO1_SetFieldValue();&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pop-up box for SetFieldValue says the syntax is:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void GPIO1_SetFieldValue(LDD_TDeviceData *DeviceDataPtr, LDD_GPIO_TBitField Field, GPIO1_TFieldValue Value);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm clueless on the four arguments I'm supposed to fill in. I assume they're automagically generated somewhere???&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;Also, I assume this I/O point is initialized somewhere. Do I have to add that code, or is it automagically included in the build?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~LMG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 15:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253062#M9732</guid>
      <dc:creator>lmg</dc:creator>
      <dc:date>2013-07-03T15:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert - How to use driver in my application?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253063#M9733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Looks like you are using BitsIO_LDD?&lt;/P&gt;&lt;P&gt;It would be easier to use the BitIO component which is a wrapper around the BitIO_LDD.&lt;/P&gt;&lt;P&gt;Or to to use BitIO_LDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use the BitIO_LDD:&lt;/P&gt;&lt;P&gt;you need to create a device handle first with the Init() function: something like&lt;/P&gt;&lt;P&gt;handle = GPIO1_Init(NULL);&lt;/P&gt;&lt;P&gt;this returns the handle to be used as first argument for SetFieldValue().&lt;/P&gt;&lt;P&gt;The other parameter are defined from the bit field names: best if you generate code and then looup-up the names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/11/12/tutorial-bits-and-pins-with-kinetis/" title="http://mcuoneclipse.com/2012/11/12/tutorial-bits-and-pins-with-kinetis/"&gt;Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 16:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253063#M9733</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-07-03T16:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert - How to use driver in my application?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253064#M9734</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;There are some examples for each bean.&lt;/P&gt;&lt;P&gt;To access them you must select the bean and with the popup menu click on Help on Component.&lt;/P&gt;&lt;P&gt;A help tab will appear under Eclipse (at right).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the help will provide documentation and examples for the bean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 16:23:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253064#M9734</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2013-07-03T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert - How to use driver in my application?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253065#M9735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich. I'll check out the link when I get back from lunch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I appreciate your blog!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~LMG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 16:24:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Processor-Expert-How-to-use-driver-in-my-application/m-p/253065#M9735</guid>
      <dc:creator>lmg</dc:creator>
      <dc:date>2013-07-03T16:24:00Z</dc:date>
    </item>
  </channel>
</rss>

