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:
| Function | Diagnostic Mechanism | Use Case | Elapsed Time (μs)~ |
|---|---|---|---|
| DIAG_PM_SFRReset() | SFR_RESET_STATE | POST | 79 |
| DIAG_PM_SFRWriteRead() | SFR_WRITE_READ | POST / 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;
}
