Thank you for your replay !
I still have some doubt. I discover that, once intall Can_callback function, first I must call Flexcan_Receive function to enable the rx interrupt.
My question is , once install the CAN callback function, will it generate interrupt every time
a msg is transmited? If so, How to disable the tx interrupt? And the same question for error callback function, do I need to enable interrupt? Or how can I disable the some err interrupt except the bus off
condition as I only need to focus on the bus off state .