pub trait AnyRtc {
// Required methods
fn set_raw(&mut self, t: RawDateTime);
fn get_daylight_savings(&self) -> bool;
fn set_daylight_savings(&mut self, daylight_savings: bool);
fn read_backup_register(&self, register: usize) -> Option<u32>;
fn write_backup_register(&self, register: usize, value: u32);
}Expand description
Trait applicable to an Rtc or an RtcContainer
Required Methods§
Sourcefn set_raw(&mut self, t: RawDateTime)
fn set_raw(&mut self, t: RawDateTime)
Write raw values to the RTC calendar registers. See Rtc::set_raw.
Sourcefn get_daylight_savings(&self) -> bool
fn get_daylight_savings(&self) -> bool
Check if daylight savings time is active.
Sourcefn set_daylight_savings(&mut self, daylight_savings: bool)
fn set_daylight_savings(&mut self, daylight_savings: bool)
Enable/disable daylight savings time.
Sourcefn read_backup_register(&self, register: usize) -> Option<u32>
fn read_backup_register(&self, register: usize) -> Option<u32>
Read content of the backup register.
Sourcefn write_backup_register(&self, register: usize, value: u32)
fn write_backup_register(&self, register: usize, value: u32)
Set content of the backup register.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".