Hi,
there is a description in the application note:
"Before the CAN RX interrupt service routine can execute the callback function, the user must provide a
pointer to this function. To do this the “CAN_set_rx_callback” is called. The only parameter of this
function is a pointer to the user callback. The user callback must receive the following parameters."
So where do you see the issue?
You are not able either to use polling mode where you only manually check CAN Rx flag, then call routine
void interrupt VectorNumber_Vcan0rx CAN_ISR() to get CAN message or you are not able to set and enable CAN Rx interrrupt together with assigning mentioned function to it.
Simple example of a can in loopback mode and polling receiver is attached.
Similar approach, just rewrite common pointers to a CANx module register to exact registers, can be used.
BR
Ladislav