<?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 S32K310 CAN Interrupt Receive in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K310-CAN-Interrupt-Receive/m-p/2052831#M46296</link>
    <description>&lt;P&gt;我使用CAN以及CANIF配置了S32K310的CAN驱动模块。我知道调用CAN_Write()函数进行报文的发送，但我存有以下的一些问题：&lt;/P&gt;&lt;P&gt;1.我该如何进行报文的接收呢？我看到有一些文章说能够通过CanIf_RxIndication()函数进行接收。但是这个函数在静态代码中的逻辑应当是自动调用，而不是由我在外部主程序中调用。或者说这个函数在触发中断自动执行后将数据进行了存储，那我该如何将这些数据读取出来呢？我是否能用自己编写的回调函数去替换他？（我在MCAL的例程中没有找到使用中断的CAN例程，似乎只有POLLING模式的例程）&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CAN.png" style="width: 775px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326033i9ACCC73EBABC4DF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="CAN.png" alt="CAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.为什么CAN的接收一定要通过CANIF而发送却可以直接由CAN驱动发出？这是否有一些规范限制我必须这样做。&lt;/P&gt;&lt;P&gt;感谢帮助！！&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 09:02:15 GMT</pubDate>
    <dc:creator>Embedded_novice</dc:creator>
    <dc:date>2025-02-27T09:02:15Z</dc:date>
    <item>
      <title>S32K310 CAN Interrupt Receive</title>
      <link>https://community.nxp.com/t5/S32K/S32K310-CAN-Interrupt-Receive/m-p/2052831#M46296</link>
      <description>&lt;P&gt;我使用CAN以及CANIF配置了S32K310的CAN驱动模块。我知道调用CAN_Write()函数进行报文的发送，但我存有以下的一些问题：&lt;/P&gt;&lt;P&gt;1.我该如何进行报文的接收呢？我看到有一些文章说能够通过CanIf_RxIndication()函数进行接收。但是这个函数在静态代码中的逻辑应当是自动调用，而不是由我在外部主程序中调用。或者说这个函数在触发中断自动执行后将数据进行了存储，那我该如何将这些数据读取出来呢？我是否能用自己编写的回调函数去替换他？（我在MCAL的例程中没有找到使用中断的CAN例程，似乎只有POLLING模式的例程）&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CAN.png" style="width: 775px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326033i9ACCC73EBABC4DF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="CAN.png" alt="CAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.为什么CAN的接收一定要通过CANIF而发送却可以直接由CAN驱动发出？这是否有一些规范限制我必须这样做。&lt;/P&gt;&lt;P&gt;感谢帮助！！&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 09:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K310-CAN-Interrupt-Receive/m-p/2052831#M46296</guid>
      <dc:creator>Embedded_novice</dc:creator>
      <dc:date>2025-02-27T09:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K310 CAN Interrupt Receive</title>
      <link>https://community.nxp.com/t5/S32K/S32K310-CAN-Interrupt-Receive/m-p/2054015#M46339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213197"&gt;@Embedded_novice&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. You can look at the following training for some information on how FlexCAN works with the drivers:&amp;nbsp;&lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/S32K/44963/2/S32K3_RTD_Training_CAN%20(2).pdf" target="_self"&gt;FLEXCAN WITH RTD AND LOW-LEVEL DRIVERS.&lt;/A&gt;&amp;nbsp;In order to receive messages in interrupt mode, you must configure the interrupt driver (IntCtrl) and select polling = FALSE inside the FlexCAN data info structure and use "&lt;STRONG&gt;FlexCAN_Ip_Receive&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;You can use this example from community post as guidance:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-DMA-test-S32DS3-5/ta-p/2015832" target="_blank"&gt;Example S32K344 FlexCAN_Ip TX/RX/EnhanceRXFIFO DMA test S32DS3.5 RTD400 - NXP Community&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;2. I imagine you are referring to the&amp;nbsp;&lt;SPAN&gt;CanIf_RxIndication API? As I said in the previous response, you can use FlexCAN_Ip_Receive instead.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Julián&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 21:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K310-CAN-Interrupt-Receive/m-p/2054015#M46339</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-02-28T21:00:34Z</dc:date>
    </item>
  </channel>
</rss>

