pub struct Qspi<'d, T: Instance, Dma> { /* private fields */ }Expand description
QSPI driver.
Implementations§
Source§impl<'d, T: Instance, Dma> Qspi<'d, T, Dma>
 
impl<'d, T: Instance, Dma> Qspi<'d, T, Dma>
Sourcepub fn new_bk1(
    peri: impl Peripheral<P = T> + 'd,
    d0: impl Peripheral<P = impl BK1D0Pin<T>> + 'd,
    d1: impl Peripheral<P = impl BK1D1Pin<T>> + 'd,
    d2: impl Peripheral<P = impl BK1D2Pin<T>> + 'd,
    d3: impl Peripheral<P = impl BK1D3Pin<T>> + 'd,
    sck: impl Peripheral<P = impl SckPin<T>> + 'd,
    nss: impl Peripheral<P = impl BK1NSSPin<T>> + 'd,
    dma: impl Peripheral<P = Dma> + 'd,
    config: Config,
) -> Self
 
pub fn new_bk1( peri: impl Peripheral<P = T> + 'd, d0: impl Peripheral<P = impl BK1D0Pin<T>> + 'd, d1: impl Peripheral<P = impl BK1D1Pin<T>> + 'd, d2: impl Peripheral<P = impl BK1D2Pin<T>> + 'd, d3: impl Peripheral<P = impl BK1D3Pin<T>> + 'd, sck: impl Peripheral<P = impl SckPin<T>> + 'd, nss: impl Peripheral<P = impl BK1NSSPin<T>> + 'd, dma: impl Peripheral<P = Dma> + 'd, config: Config, ) -> Self
Create a new QSPI driver for bank 1.
Sourcepub fn new_bk2(
    peri: impl Peripheral<P = T> + 'd,
    d0: impl Peripheral<P = impl BK2D0Pin<T>> + 'd,
    d1: impl Peripheral<P = impl BK2D1Pin<T>> + 'd,
    d2: impl Peripheral<P = impl BK2D2Pin<T>> + 'd,
    d3: impl Peripheral<P = impl BK2D3Pin<T>> + 'd,
    sck: impl Peripheral<P = impl SckPin<T>> + 'd,
    nss: impl Peripheral<P = impl BK2NSSPin<T>> + 'd,
    dma: impl Peripheral<P = Dma> + 'd,
    config: Config,
) -> Self
 
pub fn new_bk2( peri: impl Peripheral<P = T> + 'd, d0: impl Peripheral<P = impl BK2D0Pin<T>> + 'd, d1: impl Peripheral<P = impl BK2D1Pin<T>> + 'd, d2: impl Peripheral<P = impl BK2D2Pin<T>> + 'd, d3: impl Peripheral<P = impl BK2D3Pin<T>> + 'd, sck: impl Peripheral<P = impl SckPin<T>> + 'd, nss: impl Peripheral<P = impl BK2NSSPin<T>> + 'd, dma: impl Peripheral<P = Dma> + 'd, config: Config, ) -> Self
Create a new QSPI driver for bank 2.
Sourcepub fn command(&mut self, transaction: TransferConfig)
 
pub fn 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 blocking_read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig)where
    Dma: QuadDma<T>,
 
pub fn blocking_read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig)where
    Dma: QuadDma<T>,
Blocking read data, using DMA.
Sourcepub fn blocking_write_dma(&mut self, buf: &[u8], transaction: TransferConfig)where
    Dma: QuadDma<T>,
 
pub fn blocking_write_dma(&mut self, buf: &[u8], transaction: TransferConfig)where
    Dma: QuadDma<T>,
Blocking write data, using DMA.
Auto Trait Implementations§
impl<'d, T, Dma> Freeze for Qspi<'d, T, Dma>
impl<'d, T, Dma> RefUnwindSafe for Qspi<'d, T, Dma>where
    T: RefUnwindSafe,
    Dma: RefUnwindSafe,
impl<'d, T, Dma> Send for Qspi<'d, T, Dma>
impl<'d, T, Dma> Sync for Qspi<'d, T, Dma>
impl<'d, T, Dma> Unpin for Qspi<'d, T, Dma>
impl<'d, T, Dma> !UnwindSafe for Qspi<'d, T, Dma>
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