Type Alias rp2040_pac::clocks::clk_sys_resus_ctrl::W

source ·
pub type W = W<CLK_SYS_RESUS_CTRL_SPEC>;
Expand description

Register CLK_SYS_RESUS_CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn timeout(&mut self) -> TIMEOUT_W<'_, CLK_SYS_RESUS_CTRL_SPEC>

Bits 0:7 - This is expressed as a number of clk_ref cycles
and must be >= 2x clk_ref_freq/min_clk_tst_freq

source

pub fn enable(&mut self) -> ENABLE_W<'_, CLK_SYS_RESUS_CTRL_SPEC>

Bit 8 - Enable resus

source

pub fn frce(&mut self) -> FRCE_W<'_, CLK_SYS_RESUS_CTRL_SPEC>

Bit 12 - Force a resus, for test purposes only

source

pub fn clear(&mut self) -> CLEAR_W<'_, CLK_SYS_RESUS_CTRL_SPEC>

Bit 16 - For clearing the resus after the fault that triggered it has been corrected

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual