s32k312 flexcan

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32k312 flexcan

313 Views
fengba_360
Contributor III

Hello, if I use FLEX CAN RX FIFO to receive CAN messages, is there a way to know whether the received data frame is a standard frame or an extended frame,  my FIFO IdFilterTable is configured with both standard frame and extended frame entries。

0 Kudos
Reply
5 Replies

269 Views
fengba_360
Contributor III

I'm using an SDK, are there corresponding API functions?

0 Kudos
Reply

267 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@fengba_360

You should know that Enhance Receiver FIFO must enable CAN FD, so I don’t know what your intention is.


This CS bit should
include the IDE bit.

Senlent_0-1725611504439.png

 

0 Kudos
Reply

283 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@fengba_360

Senlent_0-1725592736068.png

   Senlent_3-1725592836313.png

 

0 Kudos
Reply

199 Views
fengba_360
Contributor III
Actually, my goal is to identify whether a frame received through the legacy FIFO is an extended frame or a standard frame. Based on your guidance, am I correct in understanding that I can check if the received message is a standard frame or an extended frame by performing the operation cs >> 22 & 0x01 on the structure's content? thanks!
0 Kudos
Reply

184 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@fengba_360

cs >> 22 & 0x01 ,yes, it's right to get IDE bit value.

0 Kudos
Reply