wdg_pal.h File Reference
#include "status.h"
#include "wdg_pal_mapping.h"
#include "wdg_pal_cfg.h"

Go to the source code of this file.

Data Structures

struct  wdg_option_mode_t
 WDG PAL option mode configuration structure Implements : wdg_option_mode_t_Class. More...
 
struct  wdg_config_t
 WDG PAL configuration structure Implements : wdg_config_t_Class. More...
 

Enumerations

enum  wdg_clock_source_t { WDG_PAL_BUS_CLOCK = 0x00U, WDG_PAL_LPO_CLOCK = 0x01U, WDG_PAL_SOSC_CLOCK = 0x02U, WDG_PAL_SIRC_CLOCK = 0x03U }
 Clock sources for the WDG PAL. Implements : wdg_clock_source_t_Class. More...
 

Functions

WDG PAL API
status_t WDG_Init (const wdg_instance_t *const instance, const wdg_config_t *configPtr)
 Initializes the WDG PAL. More...
 
void WDG_GetDefaultConfig (wdg_config_t *const config)
 Gets default configuration of the WDG PAL. More...
 
void WDG_Refresh (const wdg_instance_t *const instance)
 Refreshes the WDG PAL counter. More...
 
status_t WDG_Deinit (const wdg_instance_t *const instance)
 De-initializes the WDG PAL. More...
 
status_t WDG_SetInt (const wdg_instance_t *const instance, bool enable)
 Set interrupt for WDG PAL. More...
 
status_t WDG_SetTimeout (const wdg_instance_t *const instance, uint32_t value)
 Sets the value of the WDG PAL timeout. More...
 
status_t WDG_SetWindow (const wdg_instance_t *const instance, bool enable, uint32_t value)
 Set window mode and window value of the WDG PAL. More...
 
status_t WDG_GetCounter (const wdg_instance_t *const instance, uint32_t *value)
 Gets the value of the WDG PAL counter. More...
 
void WDG_ClearIntFlag (const wdg_instance_t *const instance)
 Clears the Timeout Interrupt Flag. More...