pub struct Rtc {
pub regs: RTC,
}
Fields§
§regs: RTC
Implementations§
Source§impl Rtc
impl Rtc
pub fn new(rtc: RTC) -> Self
pub fn start(&self)
pub fn stop(&self)
pub fn is_running(&self) -> bool
pub fn set_prescaler(&self, prescaler: u16)
pub fn set_time(&self, time: Time)
pub fn get_time(&self) -> Time
pub fn set_time_std_format(&self, time: Time)
pub fn get_time_std_format(&self) -> Time
pub fn set_alarm(&self, time: Time)
pub fn get_alarm(&self) -> Time
pub fn set_alarm_std_format(&self, time: Time)
pub fn get_alarm_std_format(&self) -> Time
pub fn get_event_status(&self) -> u32
pub fn enable(&self)
pub fn is_enabled(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rtc
impl RefUnwindSafe for Rtc
impl Send for Rtc
impl !Sync for Rtc
impl Unpin for Rtc
impl UnwindSafe for Rtc
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