pub struct Rtc { /* private fields */ }
Implementations§
Source§impl Rtc
impl Rtc
pub fn new(rtc: RTC, src: RTCSrc, rcc: &mut Rcc) -> Self
pub fn set_hour_format(&mut self, fmt: RtcHourFormat)
pub fn set_date(&mut self, date: &Date)
pub fn set_time(&mut self, time: &Time)
pub fn get_time(&self) -> Time
pub fn get_date(&self) -> Date
pub fn get_week_day(&self) -> u8
pub fn set_alarm_a(&mut self, alarm: impl Into<Alarm>)
pub fn set_alarm_b(&mut self, alarm: Alarm)
pub fn listen(&mut self, ev: Event)
pub fn unlisten(&mut self, ev: Event)
pub fn is_pending(&self, ev: Event) -> bool
pub fn unpend(&mut self, ev: Event)
pub fn enable_calibration_output<PIN: RtcOutputPin>( &mut self, pin: PIN, freq: RtcCalibrationFrequency, )
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