Trait stm32_fmc::FmcPeripheral[][src]

pub unsafe trait FmcPeripheral: Send {
    const REGISTERS: *const ();

    fn enable(&mut self);
fn source_clock_hz(&self) -> u32; fn memory_controller_enable(&mut self) { ... } }

A trait for device-specific FMC peripherals. Implement this to add support for a new hardware platform. Peripherals that have this trait must have the same register block as STM32 FMC peripherals.

Associated Constants

const REGISTERS: *const ()[src]

Pointer to the register block

Loading content...

Required methods

fn enable(&mut self)[src]

Enables the FMC on its peripheral bus

fn source_clock_hz(&self) -> u32[src]

The frequency of the clock used as a source for the fmc_clk.

F4/F7/G4: hclk H7: fmc_ker_ck

Loading content...

Provided methods

fn memory_controller_enable(&mut self)[src]

Enables the FMC memory controller (not always required)

Loading content...

Implementors

Loading content...