<?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: S32K148 FLEXCAN FITLER CAN_ID in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-FLEXCAN-FITLER-CAN-ID/m-p/1038560#M6648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use multiple Message Buffers every one with it's one ID. Or use a combination of individual message buffer and filter mask applied on every MB. You can use max of Rx Message buffers with max_num_mb configured by &lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;FLEXCAN_DRV_Init.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example Id 0x10 and filter 0xFFFFFFF0 will accept all ids from 0x10 to 0x1F, masking with 0 will not take in consideration when will be made the ID match for acceptance. The correspondence between mask and MB id is one to one, for more details check the RM(Reference Manual).&lt;/P&gt;&lt;P&gt;But to use this method you need to change on individual masking by calling:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLEXCAN_DRV_SetRxMaskType(&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;INST_CANCOM1,&amp;nbsp;FLEXCAN_RX_MASK_INDIVIDUAL&lt;/STRONG&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or more simple if you don't need CAN_FD you can use RxFIFO, and you can set multiple filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Alexandru Nan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2019 15:56:35 GMT</pubDate>
    <dc:creator>alexandrunan</dc:creator>
    <dc:date>2019-11-26T15:56:35Z</dc:date>
    <item>
      <title>S32K148 FLEXCAN FITLER CAN_ID</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FLEXCAN-FITLER-CAN-ID/m-p/1038559#M6647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,Dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use S32K148&amp;nbsp;FLEXCAN&lt;/P&gt;&lt;P&gt;I need add ID；&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code：&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLEXCAN_DRV_Init(INST_CANCOM1, &amp;amp;canCom1_State, &amp;amp;canCom1_InitConfig0);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexcan_data_info_t dataInfo =&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .data_length = 8U,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .msg_id_type = FLEXCAN_MSG_ID_STD,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .enable_brs = true,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .fd_enable = false,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .fd_padding = 0U&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; };&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; /* Configure RX message buffer with index RX_MSG_ID and RX_MAILBOX */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, RX_MAILBOX, &amp;amp;dataInfo, 0x1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Only receive ID 0X1，how to add more ID？&lt;/P&gt;&lt;P&gt;help me,please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;BRS&lt;/P&gt;&lt;P&gt;Grayli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2019 09:29:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FLEXCAN-FITLER-CAN-ID/m-p/1038559#M6647</guid>
      <dc:creator>gravity_one</dc:creator>
      <dc:date>2019-11-26T09:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 FLEXCAN FITLER CAN_ID</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FLEXCAN-FITLER-CAN-ID/m-p/1038560#M6648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use multiple Message Buffers every one with it's one ID. Or use a combination of individual message buffer and filter mask applied on every MB. You can use max of Rx Message buffers with max_num_mb configured by &lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;FLEXCAN_DRV_Init.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example Id 0x10 and filter 0xFFFFFFF0 will accept all ids from 0x10 to 0x1F, masking with 0 will not take in consideration when will be made the ID match for acceptance. The correspondence between mask and MB id is one to one, for more details check the RM(Reference Manual).&lt;/P&gt;&lt;P&gt;But to use this method you need to change on individual masking by calling:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLEXCAN_DRV_SetRxMaskType(&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;INST_CANCOM1,&amp;nbsp;FLEXCAN_RX_MASK_INDIVIDUAL&lt;/STRONG&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or more simple if you don't need CAN_FD you can use RxFIFO, and you can set multiple filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Alexandru Nan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2019 15:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FLEXCAN-FITLER-CAN-ID/m-p/1038560#M6648</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2019-11-26T15:56:35Z</dc:date>
    </item>
  </channel>
</rss>

