S32 SDK
wdog_driver.c File Reference
#include "wdog_hw_access.h"
#include "clock_manager.h"

Go to the source code of this file.

Functions

status_t WDOG_DRV_Init (uint32_t instance, const wdog_user_config_t *userConfigPtr)
 Initializes the WDOG driver. More...
 
void WDOG_DRV_Deinit (uint32_t instance)
 De-initializes the WDOG driver. More...
 
void WDOG_DRV_GetConfig (uint32_t instance, wdog_user_config_t *const config)
 Gets the current configuration of the WDOG. More...
 
void WDOG_DRV_GetDefaultConfig (wdog_user_config_t *const config)
 Gets default configuration of the WDOG. More...
 
status_t WDOG_DRV_SetInt (uint32_t instance, bool enable)
 Enables/Disables the WDOG timeout interrupt and sets a function to be called when a timeout interrupt is received, before reset. More...
 
void WDOG_DRV_Trigger (uint32_t instance)
 Refreshes the WDOG counter. More...
 
uint16_t WDOG_DRV_GetCounter (uint32_t instance)
 Gets the value of the WDOG counter. More...
 
void WDOG_DRV_SetWindow (uint32_t instance, bool enable, uint16_t windowvalue)
 Set window mode and window value of the WDOG. More...
 
void WDOG_DRV_SetMode (uint32_t instance, bool enable, wdog_set_mode_t Setmode)
 Sets the mode operation of the WDOG. More...
 
void WDOG_DRV_SetTimeout (uint32_t instance, uint16_t timeout)
 Sets the value of the WDOG timeout. More...
 
void WDOG_DRV_SetTestMode (uint32_t instance, wdog_test_mode_t testMode)
 Changes the WDOG test mode. More...
 
wdog_test_mode_t WDOG_DRV_GetTestMode (uint32_t instance)
 Gets the WDOG test mode. More...
 

Variables

static WDOG_Type *const s_wdogBase [] = WDOG_BASE_PTRS
 Table of base addresses for WDOG instances. More...
 
static const IRQn_Type s_wdogIrqId [] = WDOG_IRQS
 Table to save WDOG IRQ enum numbers defined in CMSIS header file. More...
 

Variable Documentation

WDOG_Type* const s_wdogBase[] = WDOG_BASE_PTRS
static

Table of base addresses for WDOG instances.

Definition at line 55 of file wdog_driver.c.

const IRQn_Type s_wdogIrqId[] = WDOG_IRQS
static

Table to save WDOG IRQ enum numbers defined in CMSIS header file.

Definition at line 58 of file wdog_driver.c.