Struct efm32pg1b_pac::Rtcc

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

RTCC

Implementations§

source§

impl Rtcc

source

pub const PTR: *const RegisterBlock = {0x40042000 as *const rtcc::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 ctrl(&self) -> &Ctrl

0x00 - Control Register

source

pub fn precnt(&self) -> &Precnt

0x04 - Pre-Counter Value Register

source

pub fn cnt(&self) -> &Cnt

0x08 - Counter Value Register

source

pub fn combcnt(&self) -> &Combcnt

0x0c - Combined Pre-Counter and Counter Value Register

source

pub fn time(&self) -> &Time

0x10 - Time of Day Register

source

pub fn date(&self) -> &Date

0x14 - Date Register

source

pub fn if_(&self) -> &If

0x18 - RTCC Interrupt Flags

source

pub fn ifs(&self) -> &Ifs

0x1c - Interrupt Flag Set Register

source

pub fn ifc(&self) -> &Ifc

0x20 - Interrupt Flag Clear Register

source

pub fn ien(&self) -> &Ien

0x24 - Interrupt Enable Register

source

pub fn status(&self) -> &Status

0x28 - Status Register

source

pub fn cmd(&self) -> &Cmd

0x2c - Command Register

source

pub fn syncbusy(&self) -> &Syncbusy

0x30 - Synchronization Busy Register

source

pub fn powerdown(&self) -> &Powerdown

0x34 - Retention RAM Power-down Register

source

pub fn lock(&self) -> &Lock

0x38 - Configuration Lock Register

source

pub fn em4wuen(&self) -> &Em4wuen

0x3c - Wake Up Enable

source

pub fn cc0_ctrl(&self) -> &Cc0Ctrl

0x40 - CC Channel Control Register

source

pub fn cc0_ccv(&self) -> &Cc0Ccv

0x44 - Capture/Compare Value Register

source

pub fn cc0_time(&self) -> &Cc0Time

0x48 - Capture/Compare Time Register

source

pub fn cc0_date(&self) -> &Cc0Date

0x4c - Capture/Compare Date Register

source

pub fn cc1_ctrl(&self) -> &Cc1Ctrl

0x50 - CC Channel Control Register

source

pub fn cc1_ccv(&self) -> &Cc1Ccv

0x54 - Capture/Compare Value Register

source

pub fn cc1_time(&self) -> &Cc1Time

0x58 - Capture/Compare Time Register

source

pub fn cc1_date(&self) -> &Cc1Date

0x5c - Capture/Compare Date Register

source

pub fn cc2_ctrl(&self) -> &Cc2Ctrl

0x60 - CC Channel Control Register

source

pub fn cc2_ccv(&self) -> &Cc2Ccv

0x64 - Capture/Compare Value Register

source

pub fn cc2_time(&self) -> &Cc2Time

0x68 - Capture/Compare Time Register

source

pub fn cc2_date(&self) -> &Cc2Date

0x6c - Capture/Compare Date Register

source

pub fn ret0_reg(&self) -> &Ret0Reg

0x104 - Retention Register

source

pub fn ret1_reg(&self) -> &Ret1Reg

0x108 - Retention Register

source

pub fn ret2_reg(&self) -> &Ret2Reg

0x10c - Retention Register

source

pub fn ret3_reg(&self) -> &Ret3Reg

0x110 - Retention Register

source

pub fn ret4_reg(&self) -> &Ret4Reg

0x114 - Retention Register

source

pub fn ret5_reg(&self) -> &Ret5Reg

0x118 - Retention Register

source

pub fn ret6_reg(&self) -> &Ret6Reg

0x11c - Retention Register

source

pub fn ret7_reg(&self) -> &Ret7Reg

0x120 - Retention Register

source

pub fn ret8_reg(&self) -> &Ret8Reg

0x124 - Retention Register

source

pub fn ret9_reg(&self) -> &Ret9Reg

0x128 - Retention Register

source

pub fn ret10_reg(&self) -> &Ret10Reg

0x12c - Retention Register

source

pub fn ret11_reg(&self) -> &Ret11Reg

0x130 - Retention Register

source

pub fn ret12_reg(&self) -> &Ret12Reg

0x134 - Retention Register

source

pub fn ret13_reg(&self) -> &Ret13Reg

0x138 - Retention Register

source

pub fn ret14_reg(&self) -> &Ret14Reg

0x13c - Retention Register

source

pub fn ret15_reg(&self) -> &Ret15Reg

0x140 - Retention Register

source

pub fn ret16_reg(&self) -> &Ret16Reg

0x144 - Retention Register

source

pub fn ret17_reg(&self) -> &Ret17Reg

0x148 - Retention Register

source

pub fn ret18_reg(&self) -> &Ret18Reg

0x14c - Retention Register

source

pub fn ret19_reg(&self) -> &Ret19Reg

0x150 - Retention Register

source

pub fn ret20_reg(&self) -> &Ret20Reg

0x154 - Retention Register

source

pub fn ret21_reg(&self) -> &Ret21Reg

0x158 - Retention Register

source

pub fn ret22_reg(&self) -> &Ret22Reg

0x15c - Retention Register

source

pub fn ret23_reg(&self) -> &Ret23Reg

0x160 - Retention Register

source

pub fn ret24_reg(&self) -> &Ret24Reg

0x164 - Retention Register

source

pub fn ret25_reg(&self) -> &Ret25Reg

0x168 - Retention Register

source

pub fn ret26_reg(&self) -> &Ret26Reg

0x16c - Retention Register

source

pub fn ret27_reg(&self) -> &Ret27Reg

0x170 - Retention Register

source

pub fn ret28_reg(&self) -> &Ret28Reg

0x174 - Retention Register

source

pub fn ret29_reg(&self) -> &Ret29Reg

0x178 - Retention Register

source

pub fn ret30_reg(&self) -> &Ret30Reg

0x17c - Retention Register

source

pub fn ret31_reg(&self) -> &Ret31Reg

0x180 - Retention Register

Trait Implementations§

source§

impl Debug for Rtcc

source§

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

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

impl Deref for Rtcc

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for Rtcc

Auto Trait Implementations§

§

impl Freeze for Rtcc

§

impl RefUnwindSafe for Rtcc

§

impl !Sync for Rtcc

§

impl Unpin for Rtcc

§

impl UnwindSafe for Rtcc

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.