Type Alias rp2040_pac::watchdog::tick::W

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

Register TICK writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn cycles(&mut self) -> CYCLES_W<'_, TICK_SPEC>

Bits 0:8 - Total number of clk_tick cycles before the next tick.

source

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

Bit 9 - start / stop tick generation

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