pub enum SlaveError {
Overrun,
Dma,
NoPause,
LostLap,
}Expand description
Slave streaming errors. After any of them, SpiSlaveRing::restart.
Variants§
Overrun
The SPI overran (a word arrived before the last one was taken). It stops receiving until reset.
Dma
A DMA transfer error stopped a channel.
NoPause
NSS stayed low: no pause between bursts to start in.
LostLap
The RX position went backwards: the DMA interrupt was held off for more than a pass
and counted the passes it missed as one, and SpiSlaveRing::next_half was polled
in between (by a wake-up from elsewhere, e.g. inside a select). Without such a poll
the same hold-off shows up only as a short Half::missed. Run the DMA interrupt
above code that can take that long.
Trait Implementations§
Source§impl Clone for SlaveError
impl Clone for SlaveError
Source§fn clone(&self) -> SlaveError
fn clone(&self) -> SlaveError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlaveError
Source§impl Debug for SlaveError
impl Debug for SlaveError
impl Eq for SlaveError
Source§impl PartialEq for SlaveError
impl PartialEq for SlaveError
impl StructuralPartialEq for SlaveError
Auto Trait Implementations§
impl Freeze for SlaveError
impl RefUnwindSafe for SlaveError
impl Send for SlaveError
impl Sync for SlaveError
impl Unpin for SlaveError
impl UnsafeUnpin for SlaveError
impl UnwindSafe for SlaveError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)