wdog_driver.h File Reference
#include "status.h"
#include "interrupt_manager.h"

Go to the source code of this file.

Data Structures

struct  wdog_op_mode_t
 WDOG option mode configuration structure Implements : wdog_op_mode_t_Class. More...
 
struct  wdog_user_config_t
 WDOG user configuration structure Implements : wdog_user_config_t_Class. More...
 

Enumerations

enum  wdog_clk_source_t { WDOG_BUS_CLOCK = 0x00U, WDOG_LPO_CLOCK = 0x01U, WDOG_SOSC_CLOCK = 0x02U, WDOG_SIRC_CLOCK = 0x03U }
 Clock sources for the WDOG. Implements : wdog_clk_source_t_Class. More...
 
enum  wdog_test_mode_t { WDOG_TST_DISABLED = 0x00U, WDOG_TST_USER = 0x01U, WDOG_TST_LOW = 0x02U, WDOG_TST_HIGH = 0x03U }
 Test modes for the WDOG. Implements : wdog_test_mode_t_Class. More...
 
enum  wdog_set_mode_t { WDOG_DEBUG_MODE = 0x00U, WDOG_WAIT_MODE = 0x01U, WDOG_STOP_MODE = 0x02U }
 set modes for the WDOG. Implements : wdog_set_mode_t_Class More...
 

Functions

WDOG Driver API
status_t WDOG_DRV_Init (uint32_t instance, const wdog_user_config_t *userConfigPtr)
 Initializes the WDOG driver. More...
 
status_t 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_ClearIntFlag (uint32_t instance)
 Clear interrupt flag of the WDOG. 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...
 
status_t WDOG_DRV_SetWindow (uint32_t instance, bool enable, uint16_t windowvalue)
 Set window mode and window value of the WDOG. More...
 
status_t WDOG_DRV_SetMode (uint32_t instance, bool enable, wdog_set_mode_t Setmode)
 Sets the mode operation of the WDOG. More...
 
status_t WDOG_DRV_SetTimeout (uint32_t instance, uint16_t timeout)
 Sets the value of the WDOG timeout. More...
 
status_t 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...