Trait stm32l4x6_hal::common::Constrain
[−]
[src]
pub trait Constrain<T> { fn constrain(self) -> T; }
Extension trait to constrain the peripheral.
Required Methods
fn constrain(self) -> T
Constrains the peripheral to play nicely with the other abstractions
Implementations on Foreign Types
impl Constrain<Parts> for FLASH
[src]
impl Constrain<Power> for PWR
[src]
impl Constrain<Rcc> for RCC
[src]
fn constrain(self) -> Rcc
[src]
Create an RCC peripheral handle.
Per Reference Manual Ch. 6.2 the default System Clock source is MSI clock with frequency 4 MHz
The constrain
method enables write access to the BDCR, and the freeze
method disables
it again. This is to enable changing LSE- and RTC-related settings.