rp2040_pac::rtc::setup_1

Type Alias 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