Type Alias atsame54p::rtc::mode1::ctrla::W

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

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn swrst(&mut self) -> SWRST_W<'_, CTRLA_SPEC, 0>

Bit 0 - Software Reset

source

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

Bit 1 - Enable

source

pub fn mode(&mut self) -> MODE_W<'_, CTRLA_SPEC, 2>

Bits 2:3 - Operating Mode

source

pub fn prescaler(&mut self) -> PRESCALER_W<'_, CTRLA_SPEC, 8>

Bits 8:11 - Prescaler

source

pub fn bktrst(&mut self) -> BKTRST_W<'_, CTRLA_SPEC, 13>

Bit 13 - BKUP Registers Reset On Tamper Enable

source

pub fn gptrst(&mut self) -> GPTRST_W<'_, CTRLA_SPEC, 14>

Bit 14 - GP Registers Reset On Tamper Enable

source

pub fn countsync(&mut self) -> COUNTSYNC_W<'_, CTRLA_SPEC, 15>

Bit 15 - Count Read Synchronization Enable

source

pub unsafe fn bits(&mut self, bits: u16) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual