3.2.20 DIAG_POR
The DIAG_POR module is designed to verify the correct functionality of the Power on Reset (POR) through a set of C function calls.
The DIAG_POR software test API is mapped to the following safety mechanisms:
| Function | Diagnostic Mechanism | Use Case | Elapsed Time (μs)~ |
|---|---|---|---|
| DIAG_POR_Status() | POR_STATUS | POST / OnDemand | .87 |
Configuring the Diagnostic
DIAG_POR does not require additional configuration.
Using the Diagnostic
#include "definitions.h"
DIAG_TEST_STATUS DIAG_POR_Post( void )
{
DIAG_TEST_STATUS result;
result = DIAG_POR_Status();
if (result == DIAG_TEST_FAILED)
{
return DIAG_TEST_PASSED;
}
else if (result == DIAG_TEST_PASSED)
{
return DIAG_TEST_FAILED;
}
else
{
return result;
}
}
