pub struct Cmu { /* private fields */ }
Expand description
CMU
Implementations§
Source§impl Cmu
impl Cmu
Sourcepub const PTR: *const RegisterBlock = {0x400e4000 as *const cmu::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x400e4000 as *const cmu::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
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>§
Sourcepub fn auxhfrcoctrl(&self) -> &Auxhfrcoctrl
pub fn auxhfrcoctrl(&self) -> &Auxhfrcoctrl
0x18 - AUXHFRCO Control Register
Sourcepub fn hfxostartupctrl(&self) -> &Hfxostartupctrl
pub fn hfxostartupctrl(&self) -> &Hfxostartupctrl
0x2c - HFXO Startup Control
Sourcepub fn hfxosteadystatectrl(&self) -> &Hfxosteadystatectrl
pub fn hfxosteadystatectrl(&self) -> &Hfxosteadystatectrl
0x30 - HFXO Steady State Control
Sourcepub fn hfxotimeoutctrl(&self) -> &Hfxotimeoutctrl
pub fn hfxotimeoutctrl(&self) -> &Hfxotimeoutctrl
0x34 - HFXO Timeout Control
Sourcepub fn ulfrcoctrl(&self) -> &Ulfrcoctrl
pub fn ulfrcoctrl(&self) -> &Ulfrcoctrl
0x3c - ULFRCO Control Register
Sourcepub fn hfclkstatus(&self) -> &Hfclkstatus
pub fn hfclkstatus(&self) -> &Hfclkstatus
0x94 - HFCLK Status Register
Sourcepub fn hfxotrimstatus(&self) -> &Hfxotrimstatus
pub fn hfxotrimstatus(&self) -> &Hfxotrimstatus
0x9c - HFXO Trim Status
Sourcepub fn hfbusclken0(&self) -> &Hfbusclken0
pub fn hfbusclken0(&self) -> &Hfbusclken0
0xb0 - High Frequency Bus Clock Enable Register 0
Sourcepub fn hfperclken0(&self) -> &Hfperclken0
pub fn hfperclken0(&self) -> &Hfperclken0
0xc0 - High Frequency Peripheral Clock Enable Register 0
Sourcepub fn lfaclken0(&self) -> &Lfaclken0
pub fn lfaclken0(&self) -> &Lfaclken0
0xe0 - Low Frequency a Clock Enable Register 0 (Async Reg)
Sourcepub fn lfbclken0(&self) -> &Lfbclken0
pub fn lfbclken0(&self) -> &Lfbclken0
0xe8 - Low Frequency B Clock Enable Register 0 (Async Reg)
Sourcepub fn lfeclken0(&self) -> &Lfeclken0
pub fn lfeclken0(&self) -> &Lfeclken0
0xf0 - Low Frequency E Clock Enable Register 0 (Async Reg)
Sourcepub fn hfcorepresc(&self) -> &Hfcorepresc
pub fn hfcorepresc(&self) -> &Hfcorepresc
0x108 - High Frequency Core Clock Prescaler Register
Sourcepub fn hfperpresc(&self) -> &Hfperpresc
pub fn hfperpresc(&self) -> &Hfperpresc
0x10c - High Frequency Peripheral Clock Prescaler Register
Sourcepub fn hfexppresc(&self) -> &Hfexppresc
pub fn hfexppresc(&self) -> &Hfexppresc
0x114 - High Frequency Export Clock Prescaler Register