AnsweredAssumed Answered

LPC546xx all CAN messages

Question asked by Jan Malý on Nov 4, 2017
Latest reply on Nov 13, 2017 by Kerry Zhou

Hello,

I had an example can_classical_callbacks from LPC5461x-CANFD-DriverAPI.zip.

I try to catch all messages, so I did this change:

 

/* receive 0x100 in CAN1 rx message buffer 0 by setting mask 0 */

// CAN_SetRxIndividualMask(CAN1, 0, CAN_RX_MB_STD(0x100, 0));

/* receive 0x101 in CAN1 rx message buffer 0 by setting mask 1 */

//CAN_SetRxIndividualMask(CAN1, 1, CAN_RX_MB_STD(0x101, 0));

/* receive 0x102 in CAN1 rx message buffer 0 by setting mask 2 */

// CAN_SetRxIndividualMask(CAN1, 2, CAN_RX_MB_STD(0x102, 0));

CAN_SetRxGlobalMask(CAN1, kCAN_GlobalFilter_Standard_FIFO0 | kCAN_GlobalFilter_Extended_FIFO0);

 

But this function CAN_SetRxGlobalMask doesn't work....

thank you

Outcomes