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
impl W
sourcepub fn rtc_enable(&mut self) -> RTC_ENABLE_W<'_, CTRL_SPEC>
pub fn rtc_enable(&mut self) -> RTC_ENABLE_W<'_, CTRL_SPEC>
Bit 0 - Enable RTC
sourcepub fn force_notleapyear(&mut self) -> FORCE_NOTLEAPYEAR_W<'_, CTRL_SPEC>
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