S32K144 CANFD

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

S32K144 CANFD

1,176 Views
liulei1
Contributor II

I want to receive a CANFD message using interrupts.But,I don't know the difference between CAN0_ORed_0_15_MB_IRQHandler and CAN0_ORed_16_31_MB_IRQHandler。

Then, I want to receive CANFD data as a register。Excuse me, how should I operate the register?

Labels (1)
0 Kudos
2 Replies

941 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

You have a pointer to received data – it’s type flexcan_msgbuff_t:

 

typedef struct {

104  uint32_t cs;

105  uint32_t msgId;

106  uint8_t data[64];

107  uint8_t dataLen;

108 } flexcan_msgbuff_t;

 

There are two interrupt vectors - one for message buffers 0-15 and second for message buffers 16-31.

pastedImage_9.png

Regards,

Lukas

0 Kudos

941 Views
liulei1
Contributor II

After the CAN bus data is interrupted, how do I determine which mailbox is generated? How to configure the filter ID of CAN mailbox?

0 Kudos