MCUSW
WDG Configuration

Introduction

This files defines WDG MCAL configuration structures

Data Structures

struct  Wdg_ModeInfoType
 Mode info type. More...
 
struct  Wdg_ConfigType
 WDG config structure. More...
 
struct  Wdg_ConfigType_PC
 WDG pre-compile config structure. More...
 
struct  Wdg_RegisterReadbackType
 

Variables

const struct Wdg_ConfigType_s WdgSettingsConfig
 WDG Configuration struct declaration. More...
 
const struct Wdg_ConfigType_PC_s WdgSettingsConfig_PC
 WDG Configuration pre compile struct declaration. More...
 

Enumerations

enum  Wdg_StatusType { WDG_UNINIT, WDG_IDLE, WDG_BUSY }
 Watchdog driver state. More...
 

Macros

#define WDG_VARIANT_PRE_COMPILE   (STD_ON)
 WDG Build Variant. Build variants.(i.e Pre Compile,Link Time And Post Build) More...
 
#define WDG_INIT_CONFIG_PC   WdgSettingsConfig
 Pre Compile config macro name. More...
 
#define WDG_DEV_ERROR_DETECT   (STD_ON)
 Enable/Disable Development Error Detection. More...
 
#define WDG_GET_VERSION_INFO_API   (STD_ON)
 Enable/Disable Version Info API. More...
 
#define WDG_REGISTER_READBACK_API   (STD_ON)
 Enable/Disable Register Readback API. More...
 
#define WDG_MAX_TIMEOUT   ((uint16)65535)
 Watchdog Maximum Timeout x 1000U - converting from secs so milli secs. More...
 
#define WDG_RTI_FREQUENCY   ((uint32)12500000)
 RTI Clock Frequency. More...
 
#define WDG_DISABLE_ALLOWED   (STD_OFF)
 Watchdog Disable Allowed. More...
 

WDG Module Instance Id

Symbolic names for module instance id

#define WdgConf_WdgGeneral_WdgIndex_0   (0U)
 Wdg Module Instance Id, always 0 as only one instance in this case. More...
 

WDG DEM Error codes to report

Pre-compile switches for enabling/disabling DEM events

#define DemConf_DemEventParameter_WDG_DEM_NO_EVENT   (0xFFFFU)
 
#define WDG_DEM_NO_EVENT   DemConf_DemEventParameter_WDG_DEM_NO_EVENT
 
#define WDG_E_MODE_FAILED   DemConf_DemEventParameter_WDG_E_MODE_FAILED
 Mode failed. More...
 
#define WDG_E_DISABLE_REJECTED   DemConf_DemEventParameter_WDG_E_DISABLE_REJECTED
 Disabled rejected. More...
 

Macro Definition Documentation

◆ WDG_VARIANT_PRE_COMPILE

#define WDG_VARIANT_PRE_COMPILE   (STD_ON)

WDG Build Variant. Build variants.(i.e Pre Compile,Link Time And Post Build)

◆ WDG_INIT_CONFIG_PC

#define WDG_INIT_CONFIG_PC   WdgSettingsConfig

Pre Compile config macro name.

◆ WDG_DEV_ERROR_DETECT

#define WDG_DEV_ERROR_DETECT   (STD_ON)

Enable/Disable Development Error Detection.

◆ WDG_GET_VERSION_INFO_API

#define WDG_GET_VERSION_INFO_API   (STD_ON)

Enable/Disable Version Info API.

◆ WDG_REGISTER_READBACK_API

#define WDG_REGISTER_READBACK_API   (STD_ON)

Enable/Disable Register Readback API.

◆ WDG_MAX_TIMEOUT

#define WDG_MAX_TIMEOUT   ((uint16)65535)

Watchdog Maximum Timeout x 1000U - converting from secs so milli secs.

◆ WDG_RTI_FREQUENCY

#define WDG_RTI_FREQUENCY   ((uint32)12500000)

RTI Clock Frequency.

◆ WDG_DISABLE_ALLOWED

#define WDG_DISABLE_ALLOWED   (STD_OFF)

Watchdog Disable Allowed.

◆ WdgConf_WdgGeneral_WdgIndex_0

#define WdgConf_WdgGeneral_WdgIndex_0   (0U)

Wdg Module Instance Id, always 0 as only one instance in this case.

◆ DemConf_DemEventParameter_WDG_DEM_NO_EVENT

#define DemConf_DemEventParameter_WDG_DEM_NO_EVENT   (0xFFFFU)

◆ WDG_DEM_NO_EVENT

#define WDG_DEM_NO_EVENT   DemConf_DemEventParameter_WDG_DEM_NO_EVENT

◆ WDG_E_MODE_FAILED

#define WDG_E_MODE_FAILED   DemConf_DemEventParameter_WDG_E_MODE_FAILED

Mode failed.

◆ WDG_E_DISABLE_REJECTED

#define WDG_E_DISABLE_REJECTED   DemConf_DemEventParameter_WDG_E_DISABLE_REJECTED

Disabled rejected.

Enumeration Type Documentation

◆ Wdg_StatusType

Watchdog driver state.

The WDG state is used internally to check that Watchdog trigger happens only in IDLE state.Also additional check to check Wdg_Init is invoked before any other Wdg API is called.

Enumerator
WDG_UNINIT 

Watchdog driver is uninitialized. State on power on before invoking Wdg_Init()

WDG_IDLE 

Watchdog driver is in idle state. Default state when WDG timer regs are not being programmed

WDG_BUSY 

Watchdog driver is reprogramming the WD to trigger the watchdog

Variable Documentation

◆ WdgSettingsConfig

const struct Wdg_ConfigType_s WdgSettingsConfig

WDG Configuration struct declaration.

◆ WdgSettingsConfig_PC

const struct Wdg_ConfigType_PC_s WdgSettingsConfig_PC

WDG Configuration pre compile struct declaration.