diag_cpu_selftest.h File Reference

This file contains function prototypes and other datatypes for CPU self tests.

Includes

  1. 1.stdint.h

Enums

This enumeration indicates the operating mode in which the DIAG_CPU_SelfTest diagnostic API function will be executed.

DIAG_CPU_SELF_TEST_SUBSET_1= 0x1U

Execute Subset-1 function within the current execution of the diagnostic API function.

DIAG_CPU_SELF_TEST_SUBSET_2= 0x2U

Execute Subset-2 function within the current execution of the diagnostic API function.

DIAG_CPU_SELF_TEST_SUBSET_3= 0x4U

Execute Subset-3 function within the current execution of the diagnostic API function.

DIAG_CPU_SELF_TEST_ALL= 0x7U

Execute all Test Subset functions sequentially within the current execution of the diagnostic API function. In this mode, only one invocation of the function is sufficient to fully perform the diagnostic function.

Functions

Table 1. uint8_tDIAG_CPU_SelfTest (diag_cpu_execution_mode_t executionMode).
Parameters

[in] executionMode

diag_cpu_execution_mode_t Enum

- indicates the operating mode in which the DIAG_CPU_SelfTest diagnostic API function will be executed

Returns
uint8_t 8-bit Error Mask <- - - - - S3 S2 S1>. Test bit = 1: Subset execution is successful; Test bit = 0: Subset execution is failed.