embassy-stm32

Crates

git

Versions

stm32u585oi

Flavors

Fmc

Struct Fmc 

Source
pub struct Fmc<'d, T: Instance> { /* private fields */ }
Expand description

FMC driver

Implementations§

Source§

impl<'d, T> Fmc<'d, T>
where T: Instance,

Source

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.

Source

pub fn enable(&mut self)

Enable the FMC peripheral and reset it.

Source

pub fn memory_controller_enable(&mut self)

Enable the memory controller on applicable chips.

Source

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,

Source§

const REGISTERS: *const ()

Pointer to the register block
Source§

fn enable(&mut self)

Enables the FMC on its peripheral bus
Source§

fn memory_controller_enable(&mut self)

Enables the FMC memory controller (not always required)
Source§

fn source_clock_hz(&self) -> u32

The frequency of the clock used as a source for the fmc_clk. Read more
Source§

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

Source§

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

Source§

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.