Purpose

Uploads data from the ECU when the Memory Transfer Address pointer 0 (MTA0) has been set (CCP only). Format

mcTypeStatus mcCCPGetResult(
mcTypeTaskRef ECURefNum,
u32 BlockSize,
u8 *Data);

Input

ECURefNum

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

BlockSize

BlockSize determines the size of the data block to be uploaded from the ECU. Output

Data

Data contains the data uploaded from the ECU memory.

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 function of the ECU M&C API to obtain a descriptive string for the return value.

Description

This function uploads data from the ECU. It is assumed that the Memory Transfer Address 0 (MTA0) has already been set to the start address of the data to be uploaded. Functions like or implicitly set the Memory Transfer Address 0 (MTA0) to the beginning of their result. To upload data from a specified address, use instead.