pub struct Rtc<'a> {
pub clock: PeripheralClock<'a>,
pub pwr_clock: PeripheralClock<'a>,
/* private fields */
}
Fields§
§clock: PeripheralClock<'a>
§pwr_clock: PeripheralClock<'a>
Implementations§
Trait Implementations§
Source§impl<'a> DateTime<'a> for Rtc<'a>
impl<'a> DateTime<'a> for Rtc<'a>
Source§fn get_date_time(&self) -> Result<(), ErrorCode>
fn get_date_time(&self) -> Result<(), ErrorCode>
Request driver to return date and time Read more
Source§fn set_date_time(&self, date_time: DateTimeValues) -> Result<(), ErrorCode>
fn set_date_time(&self, date_time: DateTimeValues) -> Result<(), ErrorCode>
Sets the current date and time Read more
Source§fn set_client(&self, client: &'a dyn DateTimeClient)
fn set_client(&self, client: &'a dyn DateTimeClient)
Sets a client that calls the callback function when date and time is requested
Source§impl DeferredCallClient for Rtc<'_>
impl DeferredCallClient for Rtc<'_>
Auto Trait Implementations§
impl<'a> !Freeze for Rtc<'a>
impl<'a> !RefUnwindSafe for Rtc<'a>
impl<'a> !Send for Rtc<'a>
impl<'a> !Sync for Rtc<'a>
impl<'a> Unpin for Rtc<'a>
impl<'a> !UnwindSafe for Rtc<'a>
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