Struct stm32h7xx_hal::rcc::rec::Fmc

source ·
pub struct Fmc { /* private fields */ }
Expand description

Reset, Enable and Clock functionality for Fmc

§Reset/Enable Example

let ccdr = ...; // From RCC

// Enable the clock to the peripheral and reset it
ccdr.peripheral.FMC.enable().reset();

§Individual Kernel Clock

This peripheral has its own dedicated kernel clock. See FmcClkSel for possible clock sources.

let ccdr = ...; // From RCC

// Set individual kernel clock
let fmc_prec = ccdr.peripheral.FMC.kernel_clk_mux(FmcClkSel::XX_clock_soruce_XX);

assert_eq!(fmc_prec.get_kernel_clk_mux(), FmcClkSel::XX_clock_source_XX);

Implementations§

source§

impl Fmc

source

pub fn low_power(self, lpm: LowPowerMode) -> Self

Set Low Power Mode for peripheral

source§

impl Fmc

source

pub fn kernel_clk_mux(self, sel: FmcClkSel) -> Self

Modify the kernel clock for FMC. See RM0433 Rev 7 Section 8.5.8.

It is possible to switch this clock dynamically without generating spurs or timing violations. However, the user must ensure that both clocks are running. See RM0433 Rev 7 Section 8.5.10.

source

pub fn get_kernel_clk_mux(&self) -> FmcClkSel

Return the current kernel clock selection

Trait Implementations§

source§

impl ResetEnable for Fmc

source§

fn enable(self) -> Self

Enable this peripheral
source§

fn disable(self) -> Self

Disable this peripheral
source§

fn reset(self) -> Self

Reset this peripheral
source§

impl Send for Fmc

Auto Trait Implementations§

§

impl Freeze for Fmc

§

impl RefUnwindSafe for Fmc

§

impl !Sync for Fmc

§

impl Unpin for Fmc

§

impl UnwindSafe for Fmc

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.