pub struct QUADSPI { /* private fields */ }
Expand description
QUADSPI
Implementations§
§impl QUADSPI
impl QUADSPI
pub const PTR: *const RegisterBlock = {0x52005000 as *const stm32h7xx_hal::stm32::quadspi::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x52005000 as *const stm32h7xx_hal::stm32::quadspi::RegisterBlock}
Pointer to the register block
pub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations§
§impl QspiExt for QUADSPI
impl QspiExt for QUADSPI
§fn bank1<CONFIG, PINS>(
self,
_pins: PINS,
config: CONFIG,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
PINS: PinsBank1,
fn bank1<CONFIG, PINS>(
self,
_pins: PINS,
config: CONFIG,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
PINS: PinsBank1,
Create and initialize a new QUADSPI peripheral that will use the single-bank mode on the Bank 1 of the flash memory.
A list of pins (sck, io0, io1, io2, io3)
for this QSPI peripheral should be passed as pins.
Even if the pins are not used, the function will consume them to avoid accessing to them manually.
§fn bank2<CONFIG, PINS>(
self,
_pins: PINS,
config: CONFIG,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
PINS: PinsBank2,
fn bank2<CONFIG, PINS>(
self,
_pins: PINS,
config: CONFIG,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
PINS: PinsBank2,
Create and initialize a new QUADSPI peripheral that will use the single-bank mode on the Bank 2 of the flash memory.
A list of pins (sck, io0, io1, io2, io3)
for this QSPI peripheral should be passed as pins.
Even if the pins are not used, the function will consume them to avoid accessing to them manually.
§fn bank_switch<CONFIG, PINS>(
self,
_pins: PINS,
initial_bank: BankSelect,
config: CONFIG,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
PINS: PinsBank1And2,
fn bank_switch<CONFIG, PINS>(
self,
_pins: PINS,
initial_bank: BankSelect,
config: CONFIG,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
PINS: PinsBank1And2,
Create and initialize a new QUADSPI peripheral that can switch between both banks of the flash memory.
The Bank to use at initialization is given by the initial_bank
parameter.
A list of pins (sck, bank1_io0, bank1_io1, bank1_io2, bank1_io3, bank2_io0, bank2_io1, bank2_io2, bank2_io3)
for this QSPI peripheral should be passed as pins.
Even if the pins are not used, the function will consume them to avoid accessing to them manually.
Note that the peripheral will still be initialized in single-bank mode and the used bank have to be changed using the change_bank_unchecked
method.
§fn qspi_unchecked<CONFIG>(
self,
config: CONFIG,
bank: Bank,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
fn qspi_unchecked<CONFIG>(
self,
config: CONFIG,
bank: Bank,
clocks: &CoreClocks,
prec: Qspi
) -> Xspi<QUADSPI>where
CONFIG: Into<Config>,
Create and initialize a new QUADSPI peripheral without consuming any pins.
The given bank
allow to chose between communication to just one of the two banks (single-bank mode) or to both at the same time (dual-flash mode).