RTC

Struct RTC 

Source
pub struct RTC { /* private fields */ }
Expand description

Realtime Clock

Implementations§

Source§

impl RTC

Source

pub const PTR: *const RegisterBlock = {0x40044000 as *const rtc::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn bcnt0(&self) -> &BCNT0

0x02 - Binary Counter 0

Source

pub fn rseccnt(&self) -> &RSECCNT

0x02 - Second Counter

Source

pub fn bcnt1(&self) -> &BCNT1

0x04 - Binary Counter 1

Source

pub fn rmincnt(&self) -> &RMINCNT

0x04 - Minute Counter

Source

pub fn bcnt2(&self) -> &BCNT2

0x06 - Binary Counter 2

Source

pub fn rhrcnt(&self) -> &RHRCNT

0x06 - Hour Counter

Source

pub fn bcnt3(&self) -> &BCNT3

0x08 - Binary Counter 3

Source

pub fn rwkcnt(&self) -> &RWKCNT

0x08 - Day-of-Week Counter

Source

pub fn bcnt0ar(&self) -> &BCNT0AR

0x10 - Binary Counter 0 Alarm Register

Source

pub fn rsecar(&self) -> &RSECAR

0x10 - Second Alarm Register

Source

pub fn bcnt1ar(&self) -> &BCNT1AR

0x12 - Binary Counter 1 Alarm Register

Source

pub fn rminar(&self) -> &RMINAR

0x12 - Minute Alarm Register

Source

pub fn bcnt2ar(&self) -> &BCNT2AR

0x14 - Binary Counter 2 Alarm Register

Source

pub fn rhrar(&self) -> &RHRAR

0x14 - Hour Alarm Register

Source

pub fn bcnt3ar(&self) -> &BCNT3AR

0x16 - Binary Counter 3 Alarm Register

Source

pub fn rwkar(&self) -> &RWKAR

0x16 - Day-of-Week Alarm Register

Source

pub fn bcnt0aer(&self) -> &BCNT0AER

0x18 - Binary Counter 0 Alarm Enable Register

Source

pub fn rdayar(&self) -> &RDAYAR

0x18 - Date Alarm Register

Source

pub fn bcnt1aer(&self) -> &BCNT1AER

0x1a - Binary Counter 1 Alarm Enable Register

Source

pub fn rmonar(&self) -> &RMONAR

0x1a - Month Alarm Register

Source

pub fn bcnt2aer(&self) -> &BCNT2AER

0x1c - Binary Counter 2 Alarm Enable Register

Source

pub fn ryrar(&self) -> &RYRAR

0x1c - Year Alarm Register

Source

pub fn bcnt3aer(&self) -> &BCNT3AER

0x1e - Binary Counter 3 Alarm Enable Register

Source

pub fn ryraren(&self) -> &RYRAREN

0x1e - Year Alarm Enable Register

Trait Implementations§

Source§

impl Debug for RTC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for RTC

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for RTC

Auto Trait Implementations§

§

impl Freeze for RTC

§

impl RefUnwindSafe for RTC

§

impl !Sync for RTC

§

impl Unpin for RTC

§

impl UnwindSafe for RTC

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.