pub enum SpiInterrupt {
TxBufEmpty,
RxBufNotEmpty,
Error,
}
Expand description
Possible interrupt types. Enable these in SPIx_CR2. Check and clear with SR. There is no explicit way to clear these.
Variants§
Trait Implementations§
Source§impl Clone for SpiInterrupt
impl Clone for SpiInterrupt
Source§fn clone(&self) -> SpiInterrupt
fn clone(&self) -> SpiInterrupt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for SpiInterrupt
Auto Trait Implementations§
impl Freeze for SpiInterrupt
impl RefUnwindSafe for SpiInterrupt
impl Send for SpiInterrupt
impl Sync for SpiInterrupt
impl Unpin for SpiInterrupt
impl UnwindSafe for SpiInterrupt
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