Hello,
I am using the example of MSCAN(AN4975). What's the function of callback funcation? How it works?
void (*rx_callback)(unsigned int, unsigned char[8], unsigned char);
if(rx_callback!=NULL){
rx_callback(id, data, length);
}
CAN_set_rx_callback(&processCANMessage);
Hello,
I would like to direct you to the AN4975 https://www.nxp.com/docs/en/application-note/AN4975.pdf
There is a chapter "6 Receiving a CAN message" point 4:
I hope it helps.
Best Regards,
Diana