ECU Measurement and Calibration Toolkit C API Reference

Table of Contents

mcCCPSelectCalPage

  • Updated2023-02-21
  • 1 minute(s) read

Purpose

Sets the specified address to be the start address of the calibration data page (CCP only).

Format

mcTypeStatus mcCCPSelectCalPage(
mcTypeTaskRef ECURefNum,
mcAddress Address);

Input

ECURefNum

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

Address

Configures the target address for the programming operation in the ECU. mcAddress is a C struct consisting of:

Address

Specifies the address part of the target address.

Extension

Extension contains the extension part of the address.

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

mcCCPSelectCalPage implements the CCP command SELECT_CAL_PAGE. This command sets the beginning of the calibration data page to the specified address within the ECU.

Log in to get a better experience