pub struct RtcContainer { /* private fields */ }Expand description
Contains an RTC driver.
Implementations§
Source§impl RtcContainer
impl RtcContainer
Sourcepub fn borrow_mut<'a>(&self, cs: CriticalSection<'a>) -> RtcBorrow<'a>
pub fn borrow_mut<'a>(&self, cs: CriticalSection<'a>) -> RtcBorrow<'a>
Acquire an RTC borrow.
Trait Implementations§
Source§impl AnyRtc for RtcContainer
Available on crate feature low-power and non-crate feature _lp-time-driver only.
impl AnyRtc for RtcContainer
Available on crate feature
low-power and non-crate feature _lp-time-driver only.Source§fn set_datetime(&mut self, t: DateTime) -> Result<(), RtcError>
fn set_datetime(&mut self, t: DateTime) -> Result<(), RtcError>
Set the datetime to a new value.
Source§fn get_daylight_savings(&self) -> bool
fn get_daylight_savings(&self) -> bool
Check if daylight savings time is active.
Source§fn set_daylight_savings(&mut self, daylight_savings: bool)
fn set_daylight_savings(&mut self, daylight_savings: bool)
Enable/disable daylight savings time.
Source§fn read_backup_register(&self, register: usize) -> Option<u32>
fn read_backup_register(&self, register: usize) -> Option<u32>
Read content of the backup register.
Source§fn write_backup_register(&self, register: usize, value: u32)
fn write_backup_register(&self, register: usize, value: u32)
Set content of the backup register.
Source§impl Clone for RtcContainer
impl Clone for RtcContainer
Source§fn clone(&self) -> RtcContainer
fn clone(&self) -> RtcContainer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RtcContainer
impl !RefUnwindSafe for RtcContainer
impl Send for RtcContainer
impl Sync for RtcContainer
impl Unpin for RtcContainer
impl !UnwindSafe for RtcContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more