Struct zinc_hal_lpc11xx::ioregs::WWDT_wdmod_Get [] [src]

pub struct WWDT_wdmod_Get {
    // some fields omitted
}

WDMOD: Watchdog mode register. This register contains the basic mode and status of the Watchdog Timer.

Methods

impl WWDT_wdmod_Get

fn new(reg: &WWDT_wdmod) -> WWDT_wdmod_Get

Create a getter reflecting the current value of the given register.

fn raw(&self) -> u32

Get the raw value of the register.

fn wden(&self) -> WWDT_wdmod_wden

Get value of WDEN field: Watchdog enable bit. This bit is Set Only. Setting this bit to one also locks the watchdog clock source. Once the watchdog timer is enabled, the watchdog timer clock source cannot be changed. If the watchdog timer is needed in Deep-sleep mode, the watchdog clock source must be changed to the watchdog oscillator before setting this bit to one.

fn wdreset(&self) -> WWDT_wdmod_wdreset

Get value of WDRESET field: Watchdog reset enable bit. This bit is Set Only.

fn wdtof(&self) -> bool

Get value of WDTOF field: Watchdog time-out flag. Set when the watchdog timer times out, by a feed error, or by events associated with WDPROTECT, cleared by software. Causes a chip reset if WDRESET = 1.

fn wdint(&self) -> bool

Get value of WDINT field: Watchdog interrupt flag. Set when the timer reaches the value in WDWARNINT. Cleared by software.

fn wdprotect(&self) -> WWDT_wdmod_wdprotect

Get value of WDPROTECT field: Watchdog update mode. This bit is Set Only.

Trait Implementations

impl Copy for WWDT_wdmod_Get

Derived Implementations

impl Clone for WWDT_wdmod_Get

fn clone(&self) -> WWDT_wdmod_Get

fn clone_from(&mut self, source: &Self)