Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Node Layer » Iso11783PDDOnError

Iso11783PDDOnError (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void Iso11783PDDOnError( dword ecuHandle, long errorCode, dword param );

Description

This function can be implemented in the CAPL program. The function is called up by the node layer when an error occurs.

Parameters

  • ecuHandle: Handle of the ECU
  • errorCode: Error code
  • param: additional parameter, dependent on the error code

Return Values

Example

void Iso11783PDDOnError( LONG ecuHandle, LONG errorCode, LONG addParam )
{
  char buffer[256];
  Iso11783PDDGetLastErrorText ( elCount(buffer), buffer);
  write( "ERROR: %s", buffer );
}