mss_watchdog_config

Struct mss_watchdog_config 

Source
#[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.

ParameterDescription
time_valThe value from which the watchdog timer counts down
mvrp_valThe watchdog MVRP value
timeout_valThe watchdog timeout value
forbidden_enEnable/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: u8

Trait Implementations§

Source§

impl Clone for mss_watchdog_config

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for mss_watchdog_config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for mss_watchdog_config

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.