Type Alias atsame54p::rtc::mode0::ctrlb::W

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

Register CTRLB writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn gp0en(&mut self) -> GP0EN_W<'_, CTRLB_SPEC, 0>

Bit 0 - General Purpose 0 Enable

source

pub fn gp2en(&mut self) -> GP2EN_W<'_, CTRLB_SPEC, 1>

Bit 1 - General Purpose 2 Enable

source

pub fn debmaj(&mut self) -> DEBMAJ_W<'_, CTRLB_SPEC, 4>

Bit 4 - Debouncer Majority Enable

source

pub fn debasync(&mut self) -> DEBASYNC_W<'_, CTRLB_SPEC, 5>

Bit 5 - Debouncer Asynchronous Enable

source

pub fn rtcout(&mut self) -> RTCOUT_W<'_, CTRLB_SPEC, 6>

Bit 6 - RTC Output Enable

source

pub fn dmaen(&mut self) -> DMAEN_W<'_, CTRLB_SPEC, 7>

Bit 7 - DMA Enable

source

pub fn debf(&mut self) -> DEBF_W<'_, CTRLB_SPEC, 8>

Bits 8:10 - Debounce Freqnuency

source

pub fn actf(&mut self) -> ACTF_W<'_, CTRLB_SPEC, 12>

Bits 12:14 - Active Layer Freqnuency

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