<?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>MCUXpresso IDE中的主题 Re: Function parameters for member functions</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1934712#M9983</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239075"&gt;@Annodizer&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure understand your meaning. If you want show the member of structure, please use "." or '-&amp;gt;' as below, members will be showed automatically.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_2-1724041332512.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293710iC04175B7F9EDD1C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_2-1724041332512.png" alt="Alice_Yang_2-1724041332512.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_3-1724041338034.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293711i184B96778768DD2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_3-1724041338034.png" alt="Alice_Yang_3-1724041338034.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please describe more detail is this is not your need. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 04:23:27 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-08-19T04:23:27Z</dc:date>
    <item>
      <title>Function parameters for member functions</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1934161#M9982</link>
      <description>&lt;P&gt;Hi, first time posting so apologies if this is a duplicate. I couldn't see anything similar.&lt;/P&gt;&lt;P&gt;Is there a way to display function parameters for struct member functions? Parameters are included in the member function declaration within the struct but when writing function calls to the member function, hitting ctrl-space the suggestions are blank and ctrl-shift-space does not work.&lt;/P&gt;&lt;P&gt;Struct declaration is below.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="MCUXpresso-IDE" id="MCUXpresso-IDE"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;typedef&lt;/SPAN&gt; &lt;SPAN&gt;struct&lt;/SPAN&gt; &lt;SPAN&gt;_protobufBuffer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Pointer to self&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;struct&lt;/SPAN&gt; &lt;SPAN&gt;_protobufBuffer&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Member variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint8_t&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN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 Aug 2024 16:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1934161#M9982</guid>
      <dc:creator>Annodizer</dc:creator>
      <dc:date>2024-08-17T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function parameters for member functions</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1934712#M9983</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239075"&gt;@Annodizer&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure understand your meaning. If you want show the member of structure, please use "." or '-&amp;gt;' as below, members will be showed automatically.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_2-1724041332512.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293710iC04175B7F9EDD1C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_2-1724041332512.png" alt="Alice_Yang_2-1724041332512.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_3-1724041338034.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293711i184B96778768DD2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_3-1724041338034.png" alt="Alice_Yang_3-1724041338034.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please describe more detail is this is not your need. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 04:23:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1934712#M9983</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-08-19T04:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function parameters for member functions</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1940469#M10004</link>
      <description>&lt;P&gt;Hi Alice, thanks for the reply but that's not what I'm asking. I didn't do a very good job of explaining myself!&lt;/P&gt;&lt;P&gt;What I would like to see is the parameter list for a member function. When I define a function I can hit ctrl+shift+space to bring up the parameters that the function is expecting to receive as in the screenshot below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-26 at 14.21.10.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295322iADCA8AB2306ECC1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-26 at 14.21.10.png" alt="Screenshot 2024-08-26 at 14.21.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I use a function pointer within a type to point to this function so i can access it through dot notation I can see the function pointer definition showing me that it returns a uint32_t and accepts a void pointer as in the below image but it doesn't show me the parameter name as declared in the function declaration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-26 at 14.22.01.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295324i7A302874801010D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-26 at 14.22.01.png" alt="Screenshot 2024-08-26 at 14.22.01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question is, is there a way to get the same function parameter list as when you call the function directly, when you access it as a member function of a struct? Pressing ctrl+shift+space at the point shown below does not show the functions expected parameters or give any other assistance. Hopefully that makes it a little clearer?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-26 at 14.22.33.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295323i2C9CFE1CDE8A35F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-26 at 14.22.33.png" alt="Screenshot 2024-08-26 at 14.22.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for the assistance!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 13:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1940469#M10004</guid>
      <dc:creator>Annodizer</dc:creator>
      <dc:date>2024-08-26T13:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function parameters for member functions</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1942098#M10013</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239075"&gt;@Annodizer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your detail description. I know your meaning know. While sorry for the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;function pointer, can not show the&amp;nbsp;&amp;nbsp;parameter. Because the pointer just points to the address of function, does not include the parameter information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 09:46:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Function-parameters-for-member-functions/m-p/1942098#M10013</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-08-28T09:46:14Z</dc:date>
    </item>
  </channel>
</rss>

