Type Alias atsame54n::rtc::mode2::alarm1::W

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

Register ALARM1 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn second(&mut self) -> SECOND_W<'_, ALARM1_SPEC, 0>

Bits 0:5 - Second

source

pub fn minute(&mut self) -> MINUTE_W<'_, ALARM1_SPEC, 6>

Bits 6:11 - Minute

source

pub fn hour(&mut self) -> HOUR_W<'_, ALARM1_SPEC, 12>

Bits 12:16 - Hour

source

pub fn day(&mut self) -> DAY_W<'_, ALARM1_SPEC, 17>

Bits 17:21 - Day

source

pub fn month(&mut self) -> MONTH_W<'_, ALARM1_SPEC, 22>

Bits 22:25 - Month

source

pub fn year(&mut self) -> YEAR_W<'_, ALARM1_SPEC, 26>

Bits 26:31 - Year

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