Reset Can Ex
Syntax
void ResetCanEx(long channel);
Function
Resets the CAN controller for one specific CAN channel. Can be used to reset the CAN controller after a BUSOFF or to activate configuration changes. Since execution of the function takes a certain amount of time and the CAN controller is disconnected from the bus for a brief period messages may be lost.
Parameters
channel CAN channel
Return Values
—
on key 'r' { // After BUSOFF the controller on Channel 2 is resetresetCanEx(2);}
resetCan