s32k312 flexcan

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k312 flexcan

2,092件の閲覧回数
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 返答(返信)

2,048件の閲覧回数
fengba_360
Contributor III

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

0 件の賞賛
返信

2,046件の閲覧回数
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 件の賞賛
返信

2,062件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@fengba_360

Senlent_0-1725592736068.png

   Senlent_3-1725592836313.png

 

0 件の賞賛
返信

1,978件の閲覧回数
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 件の賞賛
返信

1,963件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@fengba_360

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

0 件の賞賛
返信