Skip to main content
Open topic with navigation CAPL Functions » XCP » xcpDisconnect

xcpDisconnect

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long xcpDisconnect(char ecuQualifier[]);

Callback

void OnXcpDisconnect(char ecuQualifier[]);

Description

Disconnects from a XCP/CCP device. Use xcpIsConnected to be aware of the disconnection. The callback function OnXcpDisconnect is called after the ECU acknowledged the disconnect command.

Parameters

  • ecuQualifier: Name of the device, configured within the CANoe DE Family XCP/CCP Window.

Return Values

  • 0: OK
  • -1: Device with this name is not existing
  • -2: Operation not allowed – already disconnected

Example

xcpConnect