Type Alias rp2040_pac::ppb::syst_csr::W
source · pub type W = W<SYST_CSR_SPEC>;
Expand description
Register SYST_CSR
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn enable(&mut self) -> ENABLE_W<'_, SYST_CSR_SPEC>
pub fn enable(&mut self) -> ENABLE_W<'_, SYST_CSR_SPEC>
Bit 0 - Enable SysTick counter:
0 = Counter disabled.
1 = Counter enabled.
sourcepub fn tickint(&mut self) -> TICKINT_W<'_, SYST_CSR_SPEC>
pub fn tickint(&mut self) -> TICKINT_W<'_, SYST_CSR_SPEC>
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.
sourcepub fn clksource(&mut self) -> CLKSOURCE_W<'_, SYST_CSR_SPEC>
pub fn clksource(&mut self) -> CLKSOURCE_W<'_, SYST_CSR_SPEC>
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.