diag_wdt_simple_timer.h File Reference

This file contains API prototypes for Indirect Time-Slot Monitoring based WDT Test (Simple-Timer Mode)

Includes

  1. 1.stdint.h

Enums

The following is an UML Test State diagram for SW_WATCHDOG_SIMPLE_TIMER_STARTUP_TEST_01: .

This enum has the valid status for the WDT test.

This enum is used to show if the backup of the RSTFR register is valid.

DIAG_WDT_SIMPLE_FSM_FAULT= 0

0 - is assigned to WDT Test State in case of faults

DIAG_WDT_SIMPLE_FSM_TEST= 1

1 - is assigned to WDT Test State to perform WDT Simple Timer Test

DIAG_WDT_SIMPLE_FSM_OK= 2

2 - is assigned to WDT Test State on error-free execution of

DIAG_WDT_SIMPLE_PASS= 0

0 - indicates that the WDT functionality is error-free

DIAG_WDT_SIMPLE_FAIL= 1

1 - indicates that WDT functionality has failed

DIAG_RSTFR_BACKUP_OK= 0

0 - indicates that the backed up RSTFR register is not corrupted

DIAG_RSTFR_BACKUP_ERROR= 1

1 - indicates that the backed up RSTFR register is corrupted

Functions

Table 1. voidDIAG_WDT_SimpleTimer (void).
Parameters
void
Returns
void See DIAG_WDT_SimpleTimer_GetStatus()
Table 2. diag_simple_wdt_status_tDIAG_WDT_SimpleTimer_GetStatus (void).
Parameters
void
Returns
diag_simple_wdt_status_t DIAG_WDT_SIMPLE_PASS, DIAG_WDT_SIMPLE_FAIL
Table 3. diag_RSTFR_backup_status_tDIAG_WDT_SimpleTimer_GetRSTFRCopy (uint8_t *store_RSTFR_copy_p).
Parameters

[in] store_RSTFR_copy_p

uint8_t *

Returns
diag_RSTFR_backup_status_t DIAG_RSTFR_BACKUP_OK, DIAG_RSTFR_BACKUP_ERROR