Skip to main content

diag_ClosedChannelInd

Valid for: CANoe DE

Function Syntax

long diag_ClosedChannelInd (); // form 1
long diag_ClosedChannelInd (char target[]); // form 2

Description

This function communicates to CANoe that the communication channel is no longer available, e.g., the tester closed the channel or a non-reparable error occurred. The CAPL program first has to call diag_SetupChannelCon before further data can be sent.

Parameters

  • target: The qualifier of the ECU whose channel has been closed.

Return Values

Error code

Example

// This callback shall be called by an example TP layer
TPLayer_ClosedChannel( long connectionHandle)
{
  char ecuQualifier[20];
  TPLayerGetECUQualifierForHandle(connectionHandle, ecuQualifier);
  diag_ClosedChannelInd(ecuQualifier);
}