mcECUDeselect
- Updated2023-02-21
- 1 minute(s) read
Purpose
Deselects an ECU and invalidates the ECU reference handle.
Format
mcTypeStatus | mcECUDeselect(
|
Input
ECURefNum
ECURefNum is the task reference which links to the selected ECU. This reference is originally returned from mcECUSelectEx.
Output
DBRefNum
DBRefNum is the database handle created from the ECURefNum value by the function.
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
mcECUDeselect deselects the an ECU and clears all internal driver data stored for this ECU. After calling this function it is no longer possible to communicate with the specified ECU. The task reference ECURefNum is transferred into a database handle DBRefNum.