HPM SDK
HPMicro Software Development Kit
ewdg_func_ctrl_config_t Struct Reference

#include <hpm_ewdg_drv.h>

Data Fields

ewdg_cnt_clk_sel_t cnt_clk_sel
 
bool enable_window_mode
 
ewdg_window_low_limit_t window_lower_limit
 
ewdg_window_upper_limit_t window_upper_limit
 
bool enable_config_lock
 
bool enable_refresh_period
 
bool enable_refresh_lock
 
ewdg_refresh_unlock_method_t refresh_unlock_method
 
bool enable_overtime_self_clear
 
bool keep_running_in_debug_mode
 
ewdg_low_power_mode_t low_power_mode
 
bool use_lowlevel_timeout
 
union {
   struct {
      uint32_t   timeout_interrupt_us
 
      uint32_t   timeout_reset_us
 
   } 
 
   struct {
      uint32_t   timeout_interrupt_val
 
      uint32_t   timeout_reset_val
 
      uint32_t   clock_div_by_power_of_2
 
   } 
 
}; 
 
uint16_t refresh_period_in_bus_cycles
 
uint16_t refresh_unlock_password
 
uint16_t ctrl_reg_update_password
 
uint16_t ctrl_reg_update_period_bus_clk_x_128
 

Field Documentation

◆ 

union { ... }

◆ clock_div_by_power_of_2

uint32_t ewdg_func_ctrl_config_t::clock_div_by_power_of_2

Power of 2 Divider

◆ cnt_clk_sel

ewdg_cnt_clk_sel_t ewdg_func_ctrl_config_t::cnt_clk_sel

Clock source for counter

◆ ctrl_reg_update_password

uint16_t ewdg_func_ctrl_config_t::ctrl_reg_update_password

Update Password

◆ ctrl_reg_update_period_bus_clk_x_128

uint16_t ewdg_func_ctrl_config_t::ctrl_reg_update_period_bus_clk_x_128

Update Period

◆ enable_config_lock

bool ewdg_func_ctrl_config_t::enable_config_lock

Enable Lock for the Configuration Registers

◆ enable_overtime_self_clear

bool ewdg_func_ctrl_config_t::enable_overtime_self_clear

Enable Over time self clear

◆ enable_refresh_lock

bool ewdg_func_ctrl_config_t::enable_refresh_lock

Enable Refresh lock

◆ enable_refresh_period

bool ewdg_func_ctrl_config_t::enable_refresh_period

Enable Refresh period

◆ enable_window_mode

bool ewdg_func_ctrl_config_t::enable_window_mode

Enable window mode

◆ keep_running_in_debug_mode

bool ewdg_func_ctrl_config_t::keep_running_in_debug_mode

Keep running even in debug mode

◆ low_power_mode

ewdg_low_power_mode_t ewdg_func_ctrl_config_t::low_power_mode

Watchdog behavior in low power mode

◆ refresh_period_in_bus_cycles

uint16_t ewdg_func_ctrl_config_t::refresh_period_in_bus_cycles

Refresh period

◆ refresh_unlock_method

ewdg_refresh_unlock_method_t ewdg_func_ctrl_config_t::refresh_unlock_method

Method to unlock REFRESH_REG

◆ refresh_unlock_password

uint16_t ewdg_func_ctrl_config_t::refresh_unlock_password

Password for unlocking write to REFRESH_REG

◆ timeout_interrupt_us

uint32_t ewdg_func_ctrl_config_t::timeout_interrupt_us

Timeout value for interrupt (in terms of microseconds)

◆ timeout_interrupt_val

uint32_t ewdg_func_ctrl_config_t::timeout_interrupt_val

Timeout value for interrupt (in terms of counter ticks)

◆ timeout_reset_us

uint32_t ewdg_func_ctrl_config_t::timeout_reset_us

Timeout value for reset (in terms of microseconds

◆ timeout_reset_val

uint32_t ewdg_func_ctrl_config_t::timeout_reset_val

Timeout value for reset (in terms of counter ticks Note: timeout_reset_val must > timeout_interrupt_val

◆ use_lowlevel_timeout

bool ewdg_func_ctrl_config_t::use_lowlevel_timeout

Select timeout value type

  • true: use the IP-level value (in terms of EWDG counter ticks)
  • false: Use the user friendly timeout value (in terms of microseconds)

◆ window_lower_limit

ewdg_window_low_limit_t ewdg_func_ctrl_config_t::window_lower_limit

Lower limit of the window

◆ window_upper_limit

ewdg_window_upper_limit_t ewdg_func_ctrl_config_t::window_upper_limit

Upper limit of the window The real upper window = (window_lower_limit/8 + window_upper_limit/16) * timeout_reset_val


The documentation for this struct was generated from the following file: