Type Alias rp2040_pac::rtc::irq_setup_0::W

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

Register IRQ_SETUP_0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

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

source

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

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

source

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

Bits 12:23 - Year

source

pub fn day_ena(&mut self) -> DAY_ENA_W<'_, IRQ_SETUP_0_SPEC>

Bit 24 - Enable day matching

source

pub fn month_ena(&mut self) -> MONTH_ENA_W<'_, IRQ_SETUP_0_SPEC>

Bit 25 - Enable month matching

source

pub fn year_ena(&mut self) -> YEAR_ENA_W<'_, IRQ_SETUP_0_SPEC>

Bit 26 - Enable year matching

source

pub fn match_ena(&mut self) -> MATCH_ENA_W<'_, IRQ_SETUP_0_SPEC>

Bit 28 - Global match enable. Don’t change any other value while this one is enabled

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