Skip to main content

_Diag_DisconnectReq, _Diag_DisconnectRequest

Valid for: CANoe DE

Function Syntax

  • void _Diag_DisconnectReq(); // form 1
  • void _Diag_DisconnectRequest(char target[]); // form 2

Description

The diagnostic communication channel to the target with the given qualifier shall be closed. For connectionless transport protocols, diag_ClosedChannelInd can be called immediately. Otherwise, the completion of the channel closing must be indicated when the TP layer indicates it. For connection-oriented protocols, the CAPL program can call a close connection routine of the TP layer.

Parameters

  • target: Qualifier of the ECU whose communication channel shall be closed.

Return Values

Example

// disconnect request callback for DoIP
_Diag_DisconnectReq()
{
  DoIP_CloseConnection();
}
diag_ClosedChannelInd