Struct stm32f4xx_hal::spi::Inner
source · pub struct Inner<SPI: Instance> { /* private fields */ }
Implementations§
source§impl<SPI: Instance> Inner<SPI>
impl<SPI: Instance> Inner<SPI>
sourcepub fn bit_format(&mut self, format: BitFormat)
pub fn bit_format(&mut self, format: BitFormat)
Select which frame format is used for data transfers
sourcepub fn is_tx_empty(&self) -> bool
pub fn is_tx_empty(&self) -> bool
Return true
if the TXE flag is set, i.e. new data to transmit
can be written to the SPI.
sourcepub fn is_rx_not_empty(&self) -> bool
pub fn is_rx_not_empty(&self) -> bool
Return true
if the RXNE flag is set, i.e. new data has been received
and can be read from the SPI.
sourcepub fn is_modf(&self) -> bool
pub fn is_modf(&self) -> bool
Return true
if the MODF flag is set, i.e. the SPI has experienced a
Master Mode Fault. (see chapter 28.3.10 of the STM32F4 Reference Manual)
sourcepub fn is_overrun(&self) -> bool
pub fn is_overrun(&self) -> bool
Return true
if the OVR flag is set, i.e. new data has been received
while the receive data register was already filled.
Trait Implementations§
source§impl<SPI: Instance> ClearFlags for Inner<SPI>
impl<SPI: Instance> ClearFlags for Inner<SPI>
source§impl<SPI: Instance> Listen for Inner<SPI>
impl<SPI: Instance> Listen for Inner<SPI>
source§fn listen(&mut self, event: impl Into<BitFlags<Self::Event>>)
fn listen(&mut self, event: impl Into<BitFlags<Self::Event>>)
Start listening for
Event
s Read moresource§fn listen_only(&mut self, event: impl Into<BitFlags<Self::Event>>)
fn listen_only(&mut self, event: impl Into<BitFlags<Self::Event>>)
Start listening for
Event
s, stop all other Read moresource§fn listen_all(&mut self)
fn listen_all(&mut self)
Start listening all
Event
ssource§fn unlisten_all(&mut self)
fn unlisten_all(&mut self)
Stop listening all
Event
sAuto Trait Implementations§
impl<SPI> RefUnwindSafe for Inner<SPI>where
SPI: RefUnwindSafe,
impl<SPI> Send for Inner<SPI>where
SPI: Send,
impl<SPI> Sync for Inner<SPI>where
SPI: Sync,
impl<SPI> Unpin for Inner<SPI>where
SPI: Unpin,
impl<SPI> UnwindSafe for Inner<SPI>where
SPI: UnwindSafe,
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