pub struct Fmc<'d, T: Instance> { /* private fields */ }Expand description
FMC driver
Implementations§
Source§impl<'d, T> Fmc<'d, T>where
T: Instance,
impl<'d, T> Fmc<'d, T>where
T: Instance,
Sourcepub fn new_raw(_instance: Peri<'d, T>) -> Self
pub fn new_raw(_instance: Peri<'d, T>) -> Self
Create a raw FMC instance.
Note: This is currently used to provide access to some basic FMC functions for manual configuration for memory types that stm32-fmc does not support.
Sourcepub fn memory_controller_enable(&mut self)
pub fn memory_controller_enable(&mut self)
Enable the memory controller on applicable chips.
Sourcepub fn source_clock_hz(&self) -> u32
pub fn source_clock_hz(&self) -> u32
Get the kernel clock currently in use for this FMC instance.
Trait Implementations§
Source§impl<'d, T> FmcPeripheral for Fmc<'d, T>where
T: Instance,
impl<'d, T> FmcPeripheral for Fmc<'d, T>where
T: Instance,
Source§fn memory_controller_enable(&mut self)
fn memory_controller_enable(&mut self)
Enables the FMC memory controller (not always required)
Source§fn source_clock_hz(&self) -> u32
fn source_clock_hz(&self) -> u32
The frequency of the clock used as a source for the fmc_clk. Read more
impl<'d, T> Send for Fmc<'d, T>where
T: Instance,
Auto Trait Implementations§
impl<'d, T> Freeze for Fmc<'d, T>
impl<'d, T> RefUnwindSafe for Fmc<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Sync for Fmc<'d, T>where
T: Sync,
impl<'d, T> Unpin for Fmc<'d, T>
impl<'d, T> !UnwindSafe for Fmc<'d, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more