ECU Measurement and Calibration Toolkit C API Reference

Content Type
Programming Language
Current manual

mcCCPGetActiveCalPage

mcCCPGetActiveCalPage

Purpose

Retrieves the ECU Memory Transfer Address pointer to the calibration data page (CCP only).

Format

mcTypeStatus mcCCPGetActiveCalPage(
mcTypeTaskRef ECURefNum,
mcAddress *Address);

Input

ECURefNum

ECURefNum is the task reference which links to the selected ECU. This reference is originally returned from mcECUSelectEx.

Output

Address

Returns the address for the active calibration page in the ECU. mcAddress is a C struct consisting of:

Address

Specifies the address part of the address.

Extension

Extension contains the extension part of the address.

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

mcCCPGetActiveCalPage retrieves the start address of the active calibration data page in the ECU memory.

Was this information helpful?