#[repr(C)]pub struct mss_watchdog_config {
pub time_val: u32,
pub mvrp_val: u32,
pub timeout_val: u32,
pub forbidden_en: u8,
pub intr_type: u8,
}Expand description
//** The mss_watchdog_config_t type is for the watchdog configuration structure. This type is used as a parameter for the MSS_WD_configure() and the MSS_WD_get_config() functions.
The following parameters are the values of this structure.
| Parameter | Description |
|---|---|
| time_val | The value from which the watchdog timer counts down |
| mvrp_val | The watchdog MVRP value |
| timeout_val | The watchdog timeout value |
| forbidden_en | Enable/disable the forbidden window |
| When set, if a refresh occurs in the forbidden window, | |
| the watchdog timeout interrupt will be generated. |
Time calculation example:
time_val = 0xFFFFF0u
mvrp_val = 0x989680u
timeout_val = 0x3e8u
A prescaler = 256 is used on the MSS AXI clock.
Considering AXI clock = 25 MHz:
The MVRP interrupt will happen after: (0xFFFFF0 - 0x989680) * (1/25MHz/256) = 69s after system reset
Timeout interrupt will happen after: (0xFFFFF0 - 0x3e8) * ( 1/25MHz/256) = 171s after system reset
Fields§
§time_val: u32§mvrp_val: u32§timeout_val: u32§forbidden_en: u8§intr_type: u8Trait Implementations§
Source§impl Clone for mss_watchdog_config
impl Clone for mss_watchdog_config
Source§fn clone(&self) -> mss_watchdog_config
fn clone(&self) -> mss_watchdog_config
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for mss_watchdog_config
impl Debug for mss_watchdog_config
impl Copy for mss_watchdog_config
Auto Trait Implementations§
impl Freeze for mss_watchdog_config
impl RefUnwindSafe for mss_watchdog_config
impl Send for mss_watchdog_config
impl Sync for mss_watchdog_config
impl Unpin for mss_watchdog_config
impl UnwindSafe for mss_watchdog_config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more