Struct zinc_hal_lpc11xx::ioregs::SYSCON_wdtoscctrl_Get [] [src]

pub struct SYSCON_wdtoscctrl_Get {
    // some fields omitted
}

WDTOSCCTRL: Watchdog oscillator control

Methods

impl SYSCON_wdtoscctrl_Get

fn new(reg: &SYSCON_wdtoscctrl) -> SYSCON_wdtoscctrl_Get

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

fn raw(&self) -> u32

Get the raw value of the register.

fn divsel(&self) -> u32

Get value of DIVSEL field: Select divider for Fclkana. wdt_osc_clk = Fclkana/ (2 x (1 + DIVSEL)) 00000: 2 x (1 + DIVSEL) = 2 00001: 2 x (1 + DIVSEL) = 4 to 11111: 2 x (1 + DIVSEL) = 64

fn freqsel(&self) -> SYSCON_wdtoscctrl_freqsel

Get value of FREQSEL field: Select watchdog oscillator analog output frequency (Fclkana).

Trait Implementations

impl Copy for SYSCON_wdtoscctrl_Get

Derived Implementations

impl Clone for SYSCON_wdtoscctrl_Get

fn clone(&self) -> SYSCON_wdtoscctrl_Get

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