> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionDiagConfigureChannel

# \_Diag\_ConfigureChannel

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE

## Function Syntax

```plaintext theme={null}
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

```plaintext theme={null}
_Diag_ConfigureChannel(char target[])
{
  long connectionHandle;
  connectionHandle = CreateConnection(target);
  TPLayer_SetTxId(connectionHandle, GetTxId(target));
  TPLayer_SetRxId(connectionHandle, GetRxId(target));
}
```

[\_Diag\_SetChannelParameters](CAPLfunctionDiagSetChannelParameters.md)
