Skip to main content

canConfigureBusOff

Valid for: CANoe DE • CANoe:lite DE

Function Syntax

Description

Uses the defined ID of a message to set the bus state to BusOff. Note: This function requires minimum a Vector driver 9.6 and a network interface with ISO CAN FD support.

Parameters

  • Channel: The CAN channel.
  • canId: Message ID that is used to set the bus state to BusOff.
    • Note: If the value -1 is used for this parameter, all IDs are used to reach the bus state Bus Off.
  • flags:
    • 0 = Switches off the disturbance
    • 1 = Switches on the disturbance

Return Values

  • 1: The disturbance for the defined ID was switched on successfully.
  • 0: The disturbance for the defined ID could not be switched on.

Example