RccExt

Trait RccExt 

Source
pub trait RccExt {
    // Required methods
    fn constrain(self) -> Rcc;
    fn freeze(self, rcc_cfg: impl Into<RawConfig>, acr: &mut ACR) -> Rcc;
}
Expand description

Extension trait that constrains the RCC peripheral

Required Methods§

Source

fn constrain(self) -> Rcc

Constrains the RCC peripheral so it plays nicely with the other abstractions

Source

fn freeze(self, rcc_cfg: impl Into<RawConfig>, acr: &mut ACR) -> Rcc

Constrains the RCC peripheral and apply clock configuration

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§