pub trait RtcPowerControl: Rtc {
// Required methods
fn start_clock(&mut self) -> Result<(), Self::Error>;
fn halt_clock(&mut self) -> Result<(), Self::Error>;
}Expand description
This trait extends Rtc with methods to start and halt the RTC clock.
Required Methods§
Sourcefn start_clock(&mut self) -> Result<(), Self::Error>
fn start_clock(&mut self) -> Result<(), Self::Error>
Start or resume the RTC oscillator so that timekeeping can continue.
Sourcefn halt_clock(&mut self) -> Result<(), Self::Error>
fn halt_clock(&mut self) -> Result<(), Self::Error>
Halt the RTC oscillator, pausing timekeeping until restarted.