3.2.7 DIAG_DIVAS

The DIAG_DIVAS module is designed to verify the correct functionality of the Divide and Square Root (DIVAS) module through a set of C function calls.

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

Table 3-8. 
FunctionDiagnostic MechanismUse CaseElapse Time (μs)~
DIAG_DIVAS_Functional()DIVAS_FUNCTIONALPOST / OnDemand8.16

Configuring the Diagnostic

No configuration is required

Using the Diagnostic

#include "definitions.h"

// DIVAS Post Tests
DIAG_TEST_STATUS DIAG_DIVAS_Post(void)
{   
    return DIAG_DIVAS_Functional(); 
}