Struct mcxn947_pac::RTC0

source ·
pub struct RTC0 { /* private fields */ }
Expand description

RTC

Implementations§

source§

impl RTC0

source

pub const PTR: *const RegisterBlock = {0x4004c000 as *const rtc0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn yearmon(&self) -> &YEARMON

0x00 - Year and Month Counters

source

pub fn days(&self) -> &DAYS

0x02 - Days and Day-of-Week Counters

source

pub fn hourmin(&self) -> &HOURMIN

0x04 - Hours and Minutes Counters

source

pub fn seconds(&self) -> &SECONDS

0x06 - Seconds Counters

source

pub fn alm_yearmon(&self) -> &ALM_YEARMON

0x08 - Year and Months Alarm

source

pub fn alm_days(&self) -> &ALM_DAYS

0x0a - Days Alarm

source

pub fn alm_hourmin(&self) -> &ALM_HOURMIN

0x0c - Hours and Minutes Alarm

source

pub fn alm_seconds(&self) -> &ALM_SECONDS

0x0e - Seconds Alarm

source

pub fn ctrl(&self) -> &CTRL

0x10 - Control

source

pub fn status(&self) -> &STATUS

0x12 - Status

source

pub fn isr(&self) -> &ISR

0x14 - Interrupt Status

source

pub fn ier(&self) -> &IER

0x16 - Interrupt Enable

source

pub fn rtc_test2(&self) -> &RTC_TEST2

0x1c - Sub Second Counter

source

pub fn dst_hour(&self) -> &DST_HOUR

0x22 - Daylight Saving Hour

source

pub fn dst_month(&self) -> &DST_MONTH

0x24 - Daylight Saving Month

source

pub fn dst_day(&self) -> &DST_DAY

0x26 - Daylight Saving Day

source

pub fn compen(&self) -> &COMPEN

0x28 - Compensation

Trait Implementations§

source§

impl Debug for RTC0

source§

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

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

impl Deref for RTC0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for RTC0

Auto Trait Implementations§

§

impl RefUnwindSafe for RTC0

§

impl !Sync for RTC0

§

impl Unpin for RTC0

§

impl UnwindSafe for RTC0

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.