Type Alias atsamd51n::sys_tick::csr::W

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

Register CSR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 0 - SysTick Counter Enable

source

pub fn tickint(&mut self) -> TICKINT_W<'_, CSR_SPEC, 1>

Bit 1 - SysTick Exception Request Enable

source

pub fn clksource(&mut self) -> CLKSOURCE_W<'_, CSR_SPEC, 2>

Bit 2 - Clock Source 0=external, 1=processor

source

pub fn countflag(&mut self) -> COUNTFLAG_W<'_, CSR_SPEC, 16>

Bit 16 - Timer counted to 0 since last read of register

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