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

source

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

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

source

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.

source

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.

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