Type Alias rp2040_pac::ppb::syst_csr::R

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

Register SYST_CSR reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn enable(&self) -> ENABLE_R

Bit 0 - Enable SysTick counter:
0 = Counter disabled.
1 = Counter enabled.

source

pub fn tickint(&self) -> TICKINT_R

Bit 1 - Enables SysTick exception request:
0 = Counting down to zero does not assert the SysTick exception request.
1 = Counting down to zero to asserts the SysTick exception request.

source

pub fn clksource(&self) -> CLKSOURCE_R

Bit 2 - SysTick clock source. Always reads as one if SYST_CALIB reports NOREF.
Selects the SysTick timer clock source:
0 = External reference clock.
1 = Processor clock.

source

pub fn countflag(&self) -> COUNTFLAG_R

Bit 16 - Returns 1 if timer counted to 0 since last time this was read. Clears on read by application or debugger.