<?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>MPC5xxxのトピックRe: Questions about FLEXCAN_DRV_InstallEventCallback warning</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-FLEXCAN-DRV-InstallEventCallback-warning/m-p/1608311#M22993</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe your callback function has different parameter type used. Did you define function as below?&lt;/P&gt;&lt;P&gt;void &lt;SPAN&gt;FlexCan_RxTx_Callback&lt;/SPAN&gt;(uint8_t instance, flexcan_event_type_t eventType, uint32_t mb_num,&lt;BR /&gt;flexcan_state_t *flexcanState)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(void)flexcanState;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(void)instance;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;switch(eventType)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 10:21:01 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2023-03-02T10:21:01Z</dc:date>
    <item>
      <title>Questions about FLEXCAN_DRV_InstallEventCallback warning</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-FLEXCAN-DRV-InstallEventCallback-warning/m-p/1607790#M22988</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;I am writing a CAN FD communication firmware utilizing the MPC5748G.&lt;/P&gt;&lt;P&gt;During the development of the firmware, I am using the FLEXCAN_DRV_InstallEventCallback function to write in interrupt format as much as possible.&lt;/P&gt;&lt;P&gt;This function takes 3 parameters as arguments, and for the callbackParam argument, I usually enter the value as 'NULL' in other examples.&lt;/P&gt;&lt;P&gt;ex) FLEXCAN_DRV_InstallEventCallback(INST_CANCOM1, FlexCan_RxTx_Callback, NULL);&lt;/P&gt;&lt;P&gt;This will cause the following warining in the function.&lt;BR /&gt;'passing argument 2 of 'FLEXCAN_DRV_InstallEventCallback' from incompatible pointer type'&lt;/P&gt;&lt;P&gt;Why does this warning occur, and can I ignore it?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-FLEXCAN-DRV-InstallEventCallback-warning/m-p/1607790#M22988</guid>
      <dc:creator>Sang-Hoon_Ahn</dc:creator>
      <dc:date>2023-03-01T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about FLEXCAN_DRV_InstallEventCallback warning</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-FLEXCAN-DRV-InstallEventCallback-warning/m-p/1608311#M22993</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe your callback function has different parameter type used. Did you define function as below?&lt;/P&gt;&lt;P&gt;void &lt;SPAN&gt;FlexCan_RxTx_Callback&lt;/SPAN&gt;(uint8_t instance, flexcan_event_type_t eventType, uint32_t mb_num,&lt;BR /&gt;flexcan_state_t *flexcanState)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(void)flexcanState;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(void)instance;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;switch(eventType)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 10:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-FLEXCAN-DRV-InstallEventCallback-warning/m-p/1608311#M22993</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-03-02T10:21:01Z</dc:date>
    </item>
  </channel>
</rss>

