3.2.25 DIAG_SUPC

The DIAG_SUPC module is designed to verify the correct functionality of the Supply Contrller (SUPC) through a set of C function calls.

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

Table 3-27. 
FunctionDiagnostic MechanismUse CaseElapsed Time (μs)~
DIAG_SUPC_SFRReset()SFR_RESETPOST20.84
DIAG_SUPC_SFRWriteRead()SFR_WRITE_READPOST / OnDemand16.62

Configuring the Diagnostic

DIAG_SUPC does not require additional configuration.

Run-time Pre-requisites

DIAG_SUPC_SFRRead should be executed before DIAG_SUPC_SFRWriteRead

Using the Diagnostic

#include "definitions.h" 

DIAG_TEST_STATUS DIAG_SUPC_SFRPost()
{   
    DIAG_TEST_STATUS result;
    
    result = DIAG_SUPC_SFRReset(NULL,0,false);
    if (result == DIAG_TEST_PASSED)
    { 
        result = DIAG_SUPC_SFRWriteRead(NULL,0,false);
    }       
    return result; 
}