Trait stm32l4x6_hal::common::Constrain [] [src]

pub trait Constrain<T> {
    fn constrain(self) -> T;
}

Extension trait to constrain the peripheral.

Required Methods

Constrains the peripheral to play nicely with the other abstractions

Implementations on Foreign Types

impl Constrain<Parts> for FLASH
[src]

[src]

impl Constrain<Power> for PWR
[src]

[src]

impl Constrain<Rcc> for RCC
[src]

[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.

Implementors