Struct stm32_fmc::Sdram

source ·
pub struct Sdram<FMC, IC> { /* private fields */ }
Expand description

SDRAM Controller

Implementations§

New SDRAM instance

_pins must be a set of pins connecting to an SDRAM on the FMC controller

Panics
  • Panics if there are not enough address lines in PINS to access the whole SDRAM

  • Panics if there are not enough bank address lines in PINS to access the whole SDRAM

New SDRAM instance

bank denotes which SDRAM bank to target. This can be either bank 1 or bank 2.

Safety

The pins are not checked against the requirements for the SDRAM chip. So you may be able to initialise a SDRAM without enough pins to access the whole memory

Initialise SDRAM instance. Delay is used to wait the SDRAM powerup delay

Returns a raw pointer to the memory-mapped SDRAM block

Panics
  • Panics if any setting in IC::CONFIG cannot be achieved

  • Panics if the FMC source clock is too fast for maximum SD clock in IC::TIMING

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.