Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Interaction Layer » Iso11783IL_OnAddressViolation

Iso11783IL_OnAddressViolation (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783IL_OnAddressViolation( pg * txPG );

Description

This callback function is called from the Iso11783 IL if address violation detection is enabled (Iso11783IL_EnableAddressViolationDetection) and if the Iso11783 IL receives the parameter group with the source address of the simulated node that was not sent by the simulated node itself. If the callback returns 1 then the default behavior is performed: the simulated node sends an Address Claimed message. If diagnostics support is activated (Iso11783IL_ActivateDiagnosticsSupport) then the nodes also sends message DM1 with SPN=2000+nodeAddress, FMI=31 and OC=1. If the callback returns 0 then the simulated node ignores the address violation.

Parameters

  • rxPG: Message which has caused the address violation.

Return Values

  • 0: simulated node ignores the address violation.
  • 1: simulated node performs the default behavior.

Example