Skip to main content

_Diag_ConfigureChannel

Valid for: CANoe DE

Function Syntax

void _Diag_ConfigureChannel(char target[]);

Description

This callback function will be called when a diagnostic request has to be sent to a new target. The CAPL node can configure the transport protocol, e.g. set CAN IDs for sending and receiving.

Parameters

  • target: Qualifier of the ECU to communicate with.

Return Values

Example

_Diag_ConfigureChannel(char target[])
{
  long connectionHandle;
  connectionHandle = CreateConnection(target);
  TPLayer_SetTxId(connectionHandle, GetTxId(target));
  TPLayer_SetRxId(connectionHandle, GetRxId(target));
}
_Diag_SetChannelParameters