rp2040_pac::rtc::setup_0

Type Alias W

Source
pub type W = W<SETUP_0_SPEC>;
Expand description

Register SETUP_0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

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

Bits 0:4 - Day of the month (1..31)

Source

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

Bits 8:11 - Month (1..12)

Source

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

Bits 12:23 - 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