16.8 diag_cpu_selftest.h File Reference

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

Includes

  1. stdint.h

Enums

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

diag_cpu_execution_mode_t
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 16-10. uint8_tDIAG_CPU_SelfTest (diag_cpu_execution_mode_t executionMode)
Parameters

[in] executionMode

2.2.1 diag_cpu_execution_mode_t Enum

- indicates the operating mode in which the 2.3.1 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.