Type Alias rp2040_pac::rtc::setup_1::W

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

Register SETUP_1 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sec(&mut self) -> SEC_W<'_, SETUP_1_SPEC>

Bits 0:5 - Seconds

source

pub fn min(&mut self) -> MIN_W<'_, SETUP_1_SPEC>

Bits 8:13 - Minutes

source

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

Bits 16:20 - Hours

source

pub fn dotw(&mut self) -> DOTW_W<'_, SETUP_1_SPEC>

Bits 24:26 - Day of the week: 1-Monday…0-Sunday ISO 8601 mod 7

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