<?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>LPC MicrocontrollersのトピックWhat does FE_MOD do?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686706#M27667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied some SPI functions from a project to another. I got a warning related to type mismatch that brought me to the below declaration in spi_15xx.h. Indeed, pTx and pRx are pointers to either 8 or 16-bit data. As the 'source' project had the FE_MOD symbol defined, I just defined it&amp;nbsp;in the current one. I'm just wondering (as I couldn't find any documentation) what other things could this affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;#ifndef FE_MOD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;typedef struct {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t *pTx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t TxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t *pRx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t RxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t Length; /**&amp;lt; Data Length*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t ssel; /**&amp;lt; Slave select bits */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t DataSize; /** &amp;lt; The size of a frame (1-16)*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;} SPI_DATA_SETUP_T;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;#else // FE_MOD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;typedef struct {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint8_t *pTx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t TxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint8_t *pRx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t RxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t Length; /**&amp;lt; Data Length*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t ssel; /**&amp;lt; Slave select bits */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t DataSize; /** &amp;lt; The size of a frame (1-16)*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;} SPI_DATA_SETUP_T;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;#endif // FE_MOD&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 09:01:59 GMT</pubDate>
    <dc:creator>juanabelaira</dc:creator>
    <dc:date>2017-07-28T09:01:59Z</dc:date>
    <item>
      <title>What does FE_MOD do?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686706#M27667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied some SPI functions from a project to another. I got a warning related to type mismatch that brought me to the below declaration in spi_15xx.h. Indeed, pTx and pRx are pointers to either 8 or 16-bit data. As the 'source' project had the FE_MOD symbol defined, I just defined it&amp;nbsp;in the current one. I'm just wondering (as I couldn't find any documentation) what other things could this affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;#ifndef FE_MOD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;typedef struct {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t *pTx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t TxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t *pRx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t RxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t Length; /**&amp;lt; Data Length*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t ssel; /**&amp;lt; Slave select bits */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t DataSize; /** &amp;lt; The size of a frame (1-16)*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;} SPI_DATA_SETUP_T;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;#else // FE_MOD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;typedef struct {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint8_t *pTx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t TxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint8_t *pRx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t RxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t Length; /**&amp;lt; Data Length*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t ssel; /**&amp;lt; Slave select bits */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t DataSize; /** &amp;lt; The size of a frame (1-16)*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;} SPI_DATA_SETUP_T;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;#endif // FE_MOD&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:01:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686706#M27667</guid>
      <dc:creator>juanabelaira</dc:creator>
      <dc:date>2017-07-28T09:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: What does FE_MOD do?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686707#M27668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan Abelaira,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Because I didn't see your whole project, then I can't know what the detail meaning of your &lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;FE_MOD&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But, just as you said, pTx and pRx are pointers to either 8 or 16-bit data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, you can refer to your own chip, it seems you are using LPC15XX, from the user manual of LPC15xx, we can get that the SPI Receive Data and SPI Transmit Data&amp;nbsp; useful data is 16 bits.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6745iC851D2972CD61DFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6791i02A93CD46BDAE991/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, I think you can don't care about &lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;FE_MOD, just defined it as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;uint16_t *pTx; /**&amp;lt; Pointer to data buffer*/&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t TxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t *pRx; /**&amp;lt; Pointer to data buffer*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t RxCnt;/* Transmit Counter */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t Length; /**&amp;lt; Data Length*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint32_t ssel; /**&amp;lt; Slave select bits */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt; uint16_t DataSize; /** &amp;lt; The size of a frame (1-16)*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace; font-size: 12px;"&gt;} SPI_DATA_SETUP_T;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'andale mono', monospace;"&gt;Your two definition should used for two different chip's compatibility.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686707#M27668</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-08-01T07:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: What does FE_MOD do?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686708#M27669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is not caring, is wondering why is undocumented.&amp;nbsp;FE_MOD is not a symbol created by me, I wouldn't ask for help here in that case. It is used in the LpcOpen library. Apparently, if one wants to work with 8-bit data on SPI, it has to be manually defined, but I haven't seen it stated anywhere. I was lucky I found it because I review the warnings, otherwise I might have run into trouble.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:27:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686708#M27669</guid>
      <dc:creator>juanabelaira</dc:creator>
      <dc:date>2017-08-01T07:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: What does FE_MOD do?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686709#M27670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for the point out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But I check the lpcopen code for lpc1549(lpcopen_2_20_keil_iar_nxp_lpcxpresso_1549), I didn't find this definition.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7006i47B26495D1C7AD11/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please tell me what the lpcopen reversion you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:44:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686709#M27670</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-08-01T07:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: What does FE_MOD do?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686710#M27671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using same version, 2.20.&lt;/P&gt;&lt;P&gt;That's what I call 'code' (including header files and comments). Documentation aims higher and beyond. It tells programmers what code doesn't and there is usually a good deal. Finding details "in the code" is like realising a turn is dangerous after a couple of cars crashed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 11:49:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686710#M27671</guid>
      <dc:creator>juanabelaira</dc:creator>
      <dc:date>2017-08-02T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: What does FE_MOD do?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686711#M27672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please give me your lpcopen full name, because I didn't find the FE_MOD keyword in my lpcopen version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 06:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-does-FE-MOD-do/m-p/686711#M27672</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-08-03T06:31:40Z</dc:date>
    </item>
  </channel>
</rss>

