STA_Tests Functions¶
-
group
sta_tests This module contains the core test execution function for this application. It defines the list of test cases to be executed and their implementations.
The code for this module is contained in
sta_tests.c, withsta_tests.hcontaining the API declarations.Enums
-
enum
STA_TestsTypes¶ Values:
-
STA_TEST_START¶
-
STA_HWBIST_MICRO¶
-
STA_HWBIST_FULL¶
-
STA_TEST_PIE_RAM¶
-
STA_TEST_PIE_HANDLER¶
-
STA_LCM_TEST¶
-
STA_CPU_REG¶
-
STA_FPU_REG¶
-
STA_VCRC_REG¶
-
STA_MARCH¶
-
STA_MARCH_COPY¶
-
STA_MARCH_CAN¶
-
STA_MARCH_CAN_COPY¶
-
STA_MARCH_MCAN¶
-
STA_MARCH_MCAN_COPY¶
-
STA_CAN_RAM_PARITY¶
-
STA_MCAN_RAM_ECC¶
-
STA_FLASH_CRC¶
-
STA_OSC_CT¶
-
STA_OSC_HR¶
-
STA_TEST_END¶
-
STA_TESTS_NUMBERS¶
-
Functions
-
unsigned char *
STA_Tests_testDevice(STA_TestsTypes testItem)¶ Executes the safety library tests as an example.
This function configures the device for each specific test. If injected errors are enabled, then this function will inject an error for the test being performed. It will then execute each STL test and return a message of characters to be printed to the terminal via SCI.
- Parameters
testItem: is the enumerated type STA_test_types test to perform.
- Return
Returns a pointer to a message string indicating a pass or fail status and the test name. This string will be printed out of SCIA to the user.
-
void
STA_Tests_injectErrorEnable(void)¶ Enables errors to be injected into the tests.
This function sets the global variable STA_Tests_injectError to true.
- Return
None.
-
void
STA_Tests_injectErrorDisable(void)¶ Disables errors to be injected into the tests.
This function sets the global variable STA_Tests_injectError to false.
- Return
None.
Variables
-
const STA_TestsTypes
STA_Tests_testArray[STA_TESTS_NUMBERS]¶
-
uint32_t
STA_Tests_cycleCounts[STA_TESTS_NUMBERS]¶
-
enum