<?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: PacketDevice Bean in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW5-1-on-S08QG8-PacketDevice-Bean/m-p/127698#M593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Dear Customer,&lt;/DIV&gt;&lt;DIV&gt;Please see typical usage of PacketDevice bean - a packet sending:&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Helv" size="2"&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Helv" size="2"&gt;&lt;FONT face="Courier New"&gt;#define MAXDATALEN 42 //maximal posible length of transmitted data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;void main(void)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;TPacket pck = {0, 0, 0, 0, 0, 0}; //packet structure&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;char ctmp[MAXDATALEN]; //transceived data&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;TPacketType type = ptToken;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;byte i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;PE_low_level_init();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** End of Processor Expert internal initialization. ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;for(i=0; i&amp;lt;MAXDATALEN; i++) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;ctmp[i] = i+0x30;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.DestAddr = 1; //&lt;EM&gt;Destination device address.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.SrcAddr = 2; //&lt;EM&gt;Source device address.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.Type = type; //&lt;EM&gt;Type of the packet.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.ID = 8; //&lt;EM&gt;Packet identification.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.Data = ctmp;&amp;nbsp; //&lt;EM&gt;Pointer to the transceived data.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.DataLen = MAXDATALEN; //&lt;EM&gt;Length of the transceived data.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;PckD1_SendPacket(pck);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Don't write any code pass this line, or it will be deleted during code generation. ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;{}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The OnTxData() event is invoked after data sending. The Data and DataLen items have to be set correctly to be sent data successfully. For more info see PacketDevice bean help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this help you.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best Regards,&lt;/DIV&gt;&lt;DIV&gt;Jan Pospisilik, Processor Expert Support&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 17:33:13 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2007-03-28T17:33:13Z</dc:date>
    <item>
      <title>CW5.1 on S08QG8 - PacketDevice Bean</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW5-1-on-S08QG8-PacketDevice-Bean/m-p/127696#M591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi&lt;/DIV&gt;&lt;DIV&gt;Trying to use the PacketDevice Bean in ProcessorExpert and can´t get it to work.&lt;/DIV&gt;&lt;DIV&gt;Anyone having&amp;nbsp;an example how to use this bean?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/Peter&lt;/DIV&gt;&lt;DIV&gt;--&lt;BR /&gt;Alban edit: added info provided by Peter on post reply&lt;/DIV&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-03-28&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:45 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW5-1-on-S08QG8-PacketDevice-Bean/m-p/127696#M591</guid>
      <dc:creator>ranemyr</dc:creator>
      <dc:date>2007-03-23T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: PacketDevice Bean</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW5-1-on-S08QG8-PacketDevice-Bean/m-p/127697#M592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi&lt;/DIV&gt;&lt;DIV&gt;I forgot to put these mandatory information.&lt;/DIV&gt;&lt;DIV&gt;MCU i am using is MC9S08QG8 , HCS08,&lt;/DIV&gt;&lt;DIV&gt;CodeWarrior Ver 5.1&lt;/DIV&gt;&lt;DIV&gt;The PacketDevice bean is USAK7_4&lt;/DIV&gt;&lt;DIV&gt;with CRC16 Bean UIAP7_6&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/Peter&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2007 04:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW5-1-on-S08QG8-PacketDevice-Bean/m-p/127697#M592</guid>
      <dc:creator>ranemyr</dc:creator>
      <dc:date>2007-03-24T04:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: PacketDevice Bean</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW5-1-on-S08QG8-PacketDevice-Bean/m-p/127698#M593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Dear Customer,&lt;/DIV&gt;&lt;DIV&gt;Please see typical usage of PacketDevice bean - a packet sending:&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Helv" size="2"&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Helv" size="2"&gt;&lt;FONT face="Courier New"&gt;#define MAXDATALEN 42 //maximal posible length of transmitted data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;void main(void)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;TPacket pck = {0, 0, 0, 0, 0, 0}; //packet structure&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;char ctmp[MAXDATALEN]; //transceived data&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;TPacketType type = ptToken;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;byte i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;PE_low_level_init();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** End of Processor Expert internal initialization. ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;for(i=0; i&amp;lt;MAXDATALEN; i++) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;ctmp[i] = i+0x30;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.DestAddr = 1; //&lt;EM&gt;Destination device address.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.SrcAddr = 2; //&lt;EM&gt;Source device address.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.Type = type; //&lt;EM&gt;Type of the packet.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.ID = 8; //&lt;EM&gt;Packet identification.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.Data = ctmp;&amp;nbsp; //&lt;EM&gt;Pointer to the transceived data.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;pck.DataLen = MAXDATALEN; //&lt;EM&gt;Length of the transceived data.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;PckD1_SendPacket(pck);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Don't write any code pass this line, or it will be deleted during code generation. ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;{}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The OnTxData() event is invoked after data sending. The Data and DataLen items have to be set correctly to be sent data successfully. For more info see PacketDevice bean help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this help you.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best Regards,&lt;/DIV&gt;&lt;DIV&gt;Jan Pospisilik, Processor Expert Support&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 17:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW5-1-on-S08QG8-PacketDevice-Bean/m-p/127698#M593</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2007-03-28T17:33:13Z</dc:date>
    </item>
  </channel>
</rss>

