Skip to main content

ResetCanEx

Valid for: CANoe DE • CANoe:lite DE

Function Syntax

void ResetCanEx(long channel);

Description

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. Note: The Rx queue of the CAN channel will not be flushed by default.

Parameters

  • channel: CAN channel

Return Values

Example

on key 'r' { // After BUSOFF the controller on Channel 2 is reset
    resetCanEx(2);
}
resetCan