Type Alias rp2040_pac::rtc::setup_0::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