Type Alias rp2040_pac::rtc::ctrl::W

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

Register CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn rtc_enable(&mut self) -> RTC_ENABLE_W<'_, CTRL_SPEC>

Bit 0 - Enable RTC

source

pub fn load(&mut self) -> LOAD_W<'_, CTRL_SPEC>

Bit 4 - Load RTC

source

pub fn force_notleapyear(&mut self) -> FORCE_NOTLEAPYEAR_W<'_, CTRL_SPEC>

Bit 8 - If set, leapyear is forced off.
Useful for years divisible by 100 but not by 400

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