pub struct Qspi<'d, T: Instance, M: PeriMode> { /* private fields */ }
Expand description
QSPI driver.
Implementations§
Source§impl<'d, T: Instance, M: PeriMode> Qspi<'d, T, M>
impl<'d, T: Instance, M: PeriMode> Qspi<'d, T, M>
Sourcepub fn blocking_command(&mut self, transaction: TransferConfig)
pub fn blocking_command(&mut self, transaction: TransferConfig)
Do a QSPI command.
Sourcepub fn blocking_read(&mut self, buf: &mut [u8], transaction: TransferConfig)
pub fn blocking_read(&mut self, buf: &mut [u8], transaction: TransferConfig)
Blocking read data.
Sourcepub fn blocking_write(&mut self, buf: &[u8], transaction: TransferConfig)
pub fn blocking_write(&mut self, buf: &[u8], transaction: TransferConfig)
Blocking write data.
Sourcepub fn enable_memory_map(&mut self, transaction: &TransferConfig)
pub fn enable_memory_map(&mut self, transaction: &TransferConfig)
Enable memory map mode
Source§impl<'d, T: Instance> Qspi<'d, T, Blocking>
impl<'d, T: Instance> Qspi<'d, T, Blocking>
Sourcepub fn new_blocking_bank1(
peri: Peri<'d, T>,
d0: Peri<'d, impl BK1D0Pin<T>>,
d1: Peri<'d, impl BK1D1Pin<T>>,
d2: Peri<'d, impl BK1D2Pin<T>>,
d3: Peri<'d, impl BK1D3Pin<T>>,
sck: Peri<'d, impl SckPin<T>>,
nss: Peri<'d, impl BK1NSSPin<T>>,
config: Config,
) -> Self
pub fn new_blocking_bank1( peri: Peri<'d, T>, d0: Peri<'d, impl BK1D0Pin<T>>, d1: Peri<'d, impl BK1D1Pin<T>>, d2: Peri<'d, impl BK1D2Pin<T>>, d3: Peri<'d, impl BK1D3Pin<T>>, sck: Peri<'d, impl SckPin<T>>, nss: Peri<'d, impl BK1NSSPin<T>>, config: Config, ) -> Self
Create a new QSPI driver for bank 1, in blocking mode.
Sourcepub fn new_blocking_bank2(
peri: Peri<'d, T>,
d0: Peri<'d, impl BK2D0Pin<T>>,
d1: Peri<'d, impl BK2D1Pin<T>>,
d2: Peri<'d, impl BK2D2Pin<T>>,
d3: Peri<'d, impl BK2D3Pin<T>>,
sck: Peri<'d, impl SckPin<T>>,
nss: Peri<'d, impl BK2NSSPin<T>>,
config: Config,
) -> Self
pub fn new_blocking_bank2( peri: Peri<'d, T>, d0: Peri<'d, impl BK2D0Pin<T>>, d1: Peri<'d, impl BK2D1Pin<T>>, d2: Peri<'d, impl BK2D2Pin<T>>, d3: Peri<'d, impl BK2D3Pin<T>>, sck: Peri<'d, impl SckPin<T>>, nss: Peri<'d, impl BK2NSSPin<T>>, config: Config, ) -> Self
Create a new QSPI driver for bank 2, in blocking mode.
Source§impl<'d, T: Instance> Qspi<'d, T, Async>
impl<'d, T: Instance> Qspi<'d, T, Async>
Sourcepub fn new_bank1(
peri: Peri<'d, T>,
d0: Peri<'d, impl BK1D0Pin<T>>,
d1: Peri<'d, impl BK1D1Pin<T>>,
d2: Peri<'d, impl BK1D2Pin<T>>,
d3: Peri<'d, impl BK1D3Pin<T>>,
sck: Peri<'d, impl SckPin<T>>,
nss: Peri<'d, impl BK1NSSPin<T>>,
dma: Peri<'d, impl QuadDma<T>>,
config: Config,
) -> Self
pub fn new_bank1( peri: Peri<'d, T>, d0: Peri<'d, impl BK1D0Pin<T>>, d1: Peri<'d, impl BK1D1Pin<T>>, d2: Peri<'d, impl BK1D2Pin<T>>, d3: Peri<'d, impl BK1D3Pin<T>>, sck: Peri<'d, impl SckPin<T>>, nss: Peri<'d, impl BK1NSSPin<T>>, dma: Peri<'d, impl QuadDma<T>>, config: Config, ) -> Self
Create a new QSPI driver for bank 1.
Sourcepub fn new_bank2(
peri: Peri<'d, T>,
d0: Peri<'d, impl BK2D0Pin<T>>,
d1: Peri<'d, impl BK2D1Pin<T>>,
d2: Peri<'d, impl BK2D2Pin<T>>,
d3: Peri<'d, impl BK2D3Pin<T>>,
sck: Peri<'d, impl SckPin<T>>,
nss: Peri<'d, impl BK2NSSPin<T>>,
dma: Peri<'d, impl QuadDma<T>>,
config: Config,
) -> Self
pub fn new_bank2( peri: Peri<'d, T>, d0: Peri<'d, impl BK2D0Pin<T>>, d1: Peri<'d, impl BK2D1Pin<T>>, d2: Peri<'d, impl BK2D2Pin<T>>, d3: Peri<'d, impl BK2D3Pin<T>>, sck: Peri<'d, impl SckPin<T>>, nss: Peri<'d, impl BK2NSSPin<T>>, dma: Peri<'d, impl QuadDma<T>>, config: Config, ) -> Self
Create a new QSPI driver for bank 2.
Sourcepub fn blocking_read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig)
pub fn blocking_read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig)
Blocking read data, using DMA.
Sourcepub async fn read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig)
pub async fn read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig)
Async read data, using DMA.
Sourcepub fn blocking_write_dma(&mut self, buf: &[u8], transaction: TransferConfig)
pub fn blocking_write_dma(&mut self, buf: &[u8], transaction: TransferConfig)
Blocking write data, using DMA.
Sourcepub async fn write_dma(&mut self, buf: &[u8], transaction: TransferConfig)
pub async fn write_dma(&mut self, buf: &[u8], transaction: TransferConfig)
Async write data, using DMA.
Auto Trait Implementations§
impl<'d, T, M> Freeze for Qspi<'d, T, M>where
T: Freeze,
impl<'d, T, M> RefUnwindSafe for Qspi<'d, T, M>where
T: RefUnwindSafe,
M: RefUnwindSafe,
impl<'d, T, M> Send for Qspi<'d, T, M>
impl<'d, T, M> Sync for Qspi<'d, T, M>
impl<'d, T, M> Unpin for Qspi<'d, T, M>
impl<'d, T, M> !UnwindSafe for Qspi<'d, T, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more