Struct daisy::pac::QUADSPI

pub struct QUADSPI { /* private fields */ }
Expand description

QUADSPI

Implementations§

§

impl QUADSPI

pub const PTR: *const RegisterBlock = {0x52005000 as *const stm32h7xx_hal::stm32::quadspi::RegisterBlock}

Pointer to the register block

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Trait Implementations§

§

impl Debug for QUADSPI

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Deref for QUADSPI

§

type Target = RegisterBlock

The resulting type after dereferencing.
§

fn deref(&self) -> &<QUADSPI as Deref>::Target

Dereferences the value.
§

impl TargetAddress<MemoryToPeripheral> for QUADSPI

§

fn address(&self) -> usize

The address to be used by the DMA stream
§

type MemSize = u32

Memory size of the target address
§

const REQUEST_LINE: Option<u8> = None

An optional associated request line
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target
§

impl TargetAddress<PeripheralToMemory> for QUADSPI

§

fn address(&self) -> usize

The address to be used by the DMA stream
§

type MemSize = u32

Memory size of the target address
§

const REQUEST_LINE: Option<u8> = None

An optional associated request line
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target
§

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,

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,

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,

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

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).

§

impl Send for QUADSPI

Auto Trait Implementations§

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

§

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

§

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.