3.1.1 DIAG_COMMON

The DIAG_COMMON module is designed to verify or help with the correct functionality of common MCU elements through a set of C function calls.

The DIAG_COMMON software test API is mapped to the following safety mechanisms:

Table 3-1. 
FunctionDiagnostic Mechanism
DIAG_COMMON_GetProcessorType()ALL
DIAG_COMMON_SFRReset()SFR_RESET_CHECK
DIAG_COMMON_SFRWriteRead()SFR_WRITE_READ

Configuring the Diagnostic

DIAG_COMMON does not require additional configuration.

Using the Diagnostic


    DIAG_PROCESSOR_TYPE procType;  
    procType =  DIAG_COMMON_GetProcessorType();

    DIAG_STATUS result = DIAG_COMMON_SFRReset();
    result = DIAG_COMMON_SFRWriteRead();