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> Freeze for Inner<SPI>where
SPI: Freeze,
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