Type Alias rp2040_pac::rtc::ctrl::R

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

Register CTRL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn rtc_enable(&self) -> RTC_ENABLE_R

Bit 0 - Enable RTC

source

pub fn rtc_active(&self) -> RTC_ACTIVE_R

Bit 1 - RTC enabled (running)

source

pub fn load(&self) -> LOAD_R

Bit 4 - Load RTC

source

pub fn force_notleapyear(&self) -> FORCE_NOTLEAPYEAR_R

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