Type Alias rp2040_pac::watchdog::tick::R

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

Register TICK reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn cycles(&self) -> CYCLES_R

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

source

pub fn enable(&self) -> ENABLE_R

Bit 9 - start / stop tick generation

source

pub fn running(&self) -> RUNNING_R

Bit 10 - Is the tick generator running?

source

pub fn count(&self) -> COUNT_R

Bits 11:19 - Count down timer: the remaining number clk_tick cycles before the next tick is generated.