Type Alias rp2040_pac::rtc::irq_setup_1::W

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

Register IRQ_SETUP_1 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bits 0:5 - Seconds

source

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

Bits 8:13 - Minutes

source

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

Bits 16:20 - Hours

source

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

Bits 24:26 - Day of the week

source

pub fn sec_ena(&mut self) -> SEC_ENA_W<'_, IRQ_SETUP_1_SPEC>

Bit 28 - Enable second matching

source

pub fn min_ena(&mut self) -> MIN_ENA_W<'_, IRQ_SETUP_1_SPEC>

Bit 29 - Enable minute matching

source

pub fn hour_ena(&mut self) -> HOUR_ENA_W<'_, IRQ_SETUP_1_SPEC>

Bit 30 - Enable hour matching

source

pub fn dotw_ena(&mut self) -> DOTW_ENA_W<'_, IRQ_SETUP_1_SPEC>

Bit 31 - Enable day of the week matching

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