Struct Cmu

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

CMU

Implementations§

Source§

impl Cmu

Source

pub const PTR: *const RegisterBlock = {0x400e4000 as *const cmu::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 - CMU Control Register

Source

pub fn hfrcoctrl(&self) -> &Hfrcoctrl

0x10 - HFRCO Control Register

Source

pub fn auxhfrcoctrl(&self) -> &Auxhfrcoctrl

0x18 - AUXHFRCO Control Register

Source

pub fn lfrcoctrl(&self) -> &Lfrcoctrl

0x20 - LFRCO Control Register

Source

pub fn hfxoctrl(&self) -> &Hfxoctrl

0x24 - HFXO Control Register

Source

pub fn hfxoctrl1(&self) -> &Hfxoctrl1

0x28 - HFXO Control 1

Source

pub fn hfxostartupctrl(&self) -> &Hfxostartupctrl

0x2c - HFXO Startup Control

Source

pub fn hfxosteadystatectrl(&self) -> &Hfxosteadystatectrl

0x30 - HFXO Steady State Control

Source

pub fn hfxotimeoutctrl(&self) -> &Hfxotimeoutctrl

0x34 - HFXO Timeout Control

Source

pub fn lfxoctrl(&self) -> &Lfxoctrl

0x38 - LFXO Control Register

Source

pub fn ulfrcoctrl(&self) -> &Ulfrcoctrl

0x3c - ULFRCO Control Register

Source

pub fn calctrl(&self) -> &Calctrl

0x50 - Calibration Control Register

Source

pub fn calcnt(&self) -> &Calcnt

0x54 - Calibration Counter Register

Source

pub fn oscencmd(&self) -> &Oscencmd

0x60 - Oscillator Enable/Disable Command Register

Source

pub fn cmd(&self) -> &Cmd

0x64 - Command Register

Source

pub fn dbgclksel(&self) -> &Dbgclksel

0x70 - Debug Trace Clock Select

Source

pub fn hfclksel(&self) -> &Hfclksel

0x74 - High Frequency Clock Select Command Register

Source

pub fn lfaclksel(&self) -> &Lfaclksel

0x80 - Low Frequency A Clock Select Register

Source

pub fn lfbclksel(&self) -> &Lfbclksel

0x84 - Low Frequency B Clock Select Register

Source

pub fn lfeclksel(&self) -> &Lfeclksel

0x88 - Low Frequency E Clock Select Register

Source

pub fn status(&self) -> &Status

0x90 - Status Register

Source

pub fn hfclkstatus(&self) -> &Hfclkstatus

0x94 - HFCLK Status Register

Source

pub fn hfxotrimstatus(&self) -> &Hfxotrimstatus

0x9c - HFXO Trim Status

Source

pub fn if_(&self) -> &If

0xa0 - Interrupt Flag Register

Source

pub fn ifs(&self) -> &Ifs

0xa4 - Interrupt Flag Set Register

Source

pub fn ifc(&self) -> &Ifc

0xa8 - Interrupt Flag Clear Register

Source

pub fn ien(&self) -> &Ien

0xac - Interrupt Enable Register

Source

pub fn hfbusclken0(&self) -> &Hfbusclken0

0xb0 - High Frequency Bus Clock Enable Register 0

Source

pub fn hfperclken0(&self) -> &Hfperclken0

0xc0 - High Frequency Peripheral Clock Enable Register 0

Source

pub fn lfaclken0(&self) -> &Lfaclken0

0xe0 - Low Frequency a Clock Enable Register 0 (Async Reg)

Source

pub fn lfbclken0(&self) -> &Lfbclken0

0xe8 - Low Frequency B Clock Enable Register 0 (Async Reg)

Source

pub fn lfeclken0(&self) -> &Lfeclken0

0xf0 - Low Frequency E Clock Enable Register 0 (Async Reg)

Source

pub fn hfpresc(&self) -> &Hfpresc

0x100 - High Frequency Clock Prescaler Register

Source

pub fn hfcorepresc(&self) -> &Hfcorepresc

0x108 - High Frequency Core Clock Prescaler Register

Source

pub fn hfperpresc(&self) -> &Hfperpresc

0x10c - High Frequency Peripheral Clock Prescaler Register

Source

pub fn hfexppresc(&self) -> &Hfexppresc

0x114 - High Frequency Export Clock Prescaler Register

Source

pub fn lfapresc0(&self) -> &Lfapresc0

0x120 - Low Frequency a Prescaler Register 0 (Async Reg)

Source

pub fn lfbpresc0(&self) -> &Lfbpresc0

0x128 - Low Frequency B Prescaler Register 0 (Async Reg)

Source

pub fn lfepresc0(&self) -> &Lfepresc0

0x130 - Low Frequency E Prescaler Register 0 (Async Reg)

Source

pub fn syncbusy(&self) -> &Syncbusy

0x140 - Synchronization Busy Register

Source

pub fn freeze(&self) -> &Freeze

0x144 - Freeze Register

Source

pub fn pcntctrl(&self) -> &Pcntctrl

0x150 - PCNT Control Register

Source

pub fn adcctrl(&self) -> &Adcctrl

0x15c - ADC Control Register

Source

pub fn routepen(&self) -> &Routepen

0x170 - I/O Routing Pin Enable Register

Source

pub fn routeloc0(&self) -> &Routeloc0

0x174 - I/O Routing Location Register

Source

pub fn lock(&self) -> &Lock

0x180 - Configuration Lock Register

Trait Implementations§

Source§

impl Debug for Cmu

Source§

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

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

impl Deref for Cmu

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for Cmu

Auto Trait Implementations§

§

impl Freeze for Cmu

§

impl RefUnwindSafe for Cmu

§

impl !Sync for Cmu

§

impl Unpin for Cmu

§

impl UnwindSafe for Cmu

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.