s32k312 flexcan

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

s32k312 flexcan

428 次查看
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 项奖励
回复
5 回复数

384 次查看
fengba_360
Contributor III

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

0 项奖励
回复

382 次查看
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 项奖励
回复

398 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@fengba_360

Senlent_0-1725592736068.png

   Senlent_3-1725592836313.png

 

0 项奖励
回复

314 次查看
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 项奖励
回复

299 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@fengba_360

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

0 项奖励
回复