mcECUDisconnect
- Updated2023-02-21
- 1 minute(s) read
Purpose
Disconnects XCP or CCP communication to the selected ECU.
Format
mcTypeStatus | mcECUDisconnect(
|
Input
ECURefNum
ECURefNum is the task reference which links to the selected ECU. This reference is originally returned from mcECUSelectEx.
Output
Return Value
The return value indicates the status of the function call as a signed 32-bit integer. Zero means the function executed successfully. A negative value specifies an error, which means the function did not perform the expected behavior. A positive value specifies a warning, which means the function performed as expected, but a condition arose that may require attention.
Use the mcStatusToString function of the ECU M&C API to obtain a descriptive string for the return value.
Description
mcECUDisconnect implements the XCP or CCP command DISCONNECT. mcECUDisconnect disconnects the specified XCP or CCP slave from the actual communication and ends the calibration session. When the calibration session is terminated, all XCP or CCP DAQ lists of the device are stopped and cleared, and the protection masks of the device are set to their default values. mcECUDisconnect is an optional command as disconnecting from the ECU is performed by the function mcECUDeselect.