rtc_hal/
control.rs

1//! Power control functionality for RTC devices.
2
3use crate::rtc::Rtc;
4
5/// This trait extends [`Rtc`] with methods to start and halt the RTC clock.
6pub trait RtcPowerControl: Rtc {
7    /// Start or resume the RTC oscillator so that timekeeping can continue.
8    fn start_clock(&mut self) -> Result<(), Self::Error>;
9
10    /// Halt the RTC oscillator, pausing timekeeping until restarted.
11    fn halt_clock(&mut self) -> Result<(), Self::Error>;
12}