14.35 diag_wdt_simple_timer.h File Reference

This file contains APIs to test WDT in Simple-Timer Mode using Indirect Time-Slot Monitoring method.

Includes

  1. stdint.h

Enums

The following is an UML Test State diagram forSimple Watchdog Timer test: .

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_simple_wdt_fsm_state_t
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_simple_wdt_status_t
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_status_t
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 14-77. voidDIAG_WDT_SimpleTimer (void)
Parameters
void
Returns
void See DIAG_WDT_SimpleTimer_GetStatus()
Table 14-78. 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 14-79. 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