3.2.19 DIAG_PM

The DIAG_PM module is designed to verify the correct functionality of the Power Managment (PM) through a set of C function calls.

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

Table 3-19. 
FunctionDiagnostic MechanismUse CaseElapsed Time (μs)~
DIAG_PM_SFRReset()SFR_RESET_STATEPOST79
DIAG_PM_SFRWriteRead()SFR_WRITE_READPOST / OnDemand 87

Configuring the Diagnostic

DIAG_PM does not require additional configuration.

Using the Diagnostic

#include "definitions.h"

DIAG_TEST_STATUS DIAG_PM_SFRPost()
{   
    DIAG_TEST_STATUS result;
    
    result = DIAG_PM_SFRReset(NULL,0,false); 
    if (result == DIAG_TEST_PASSED)
    { 
        result = DIAG_PM_SFRWriteRead(NULL,0,false);
    }       
    return result; 
}