#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
RTC control register
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn set_swreset(&mut self, val: bool)
pub const fn set_swreset(&mut self, val: bool)
Software reset control
Sourcepub const fn set_alarm1hz(&mut self, val: bool)
pub const fn set_alarm1hz(&mut self, val: bool)
RTC 1 Hz timer alarm flag status.
Sourcepub const fn set_wake1khz(&mut self, val: Wake1khz)
pub const fn set_wake1khz(&mut self, val: Wake1khz)
RTC 1 kHz timer wake-up flag status.
Sourcepub const fn alarmdpd_en(&self) -> bool
pub const fn alarmdpd_en(&self) -> bool
RTC 1 Hz timer alarm enable for Deep power-down.
Sourcepub const fn set_alarmdpd_en(&mut self, val: bool)
pub const fn set_alarmdpd_en(&mut self, val: bool)
RTC 1 Hz timer alarm enable for Deep power-down.
Sourcepub const fn wakedpd_en(&self) -> bool
pub const fn wakedpd_en(&self) -> bool
RTC 1 kHz timer wake-up enable for Deep power-down.
Sourcepub const fn set_wakedpd_en(&mut self, val: bool)
pub const fn set_wakedpd_en(&mut self, val: bool)
RTC 1 kHz timer wake-up enable for Deep power-down.
Sourcepub const fn rtc1khz_en(&self) -> bool
pub const fn rtc1khz_en(&self) -> bool
RTC 1 kHz clock enable. This bit can be set to 0 to conserve power if the 1 kHz timer is not used. This bit has no effect when the RTC is disabled (bit 7 of this register is 0).
Sourcepub const fn set_rtc1khz_en(&mut self, val: bool)
pub const fn set_rtc1khz_en(&mut self, val: bool)
RTC 1 kHz clock enable. This bit can be set to 0 to conserve power if the 1 kHz timer is not used. This bit has no effect when the RTC is disabled (bit 7 of this register is 0).
Sourcepub const fn set_rtc_en(&mut self, val: bool)
pub const fn set_rtc_en(&mut self, val: bool)
RTC enable.
Sourcepub const fn rtc_osc_pd(&self) -> RtcOscPd
pub const fn rtc_osc_pd(&self) -> RtcOscPd
RTC oscillator power-down control.
Sourcepub const fn set_rtc_osc_pd(&mut self, val: RtcOscPd)
pub const fn set_rtc_osc_pd(&mut self, val: RtcOscPd)
RTC oscillator power-down control.
Sourcepub const fn rtc_osc_bypass(&self) -> RtcOscBypass
pub const fn rtc_osc_bypass(&self) -> RtcOscBypass
RTC oscillator bypass control.
Sourcepub const fn set_rtc_osc_bypass(&mut self, val: RtcOscBypass)
pub const fn set_rtc_osc_bypass(&mut self, val: RtcOscBypass)
RTC oscillator bypass control.
Sourcepub const fn rtc_subsec_ena(&self) -> RtcSubsecEna
pub const fn rtc_subsec_ena(&self) -> RtcSubsecEna
RTC Sub-second counter control.
Sourcepub const fn set_rtc_subsec_ena(&mut self, val: RtcSubsecEna)
pub const fn set_rtc_subsec_ena(&mut self, val: RtcSubsecEna)
RTC Sub-second counter control.