pub struct InterruptStatus {
pub tx_complete: bool,
pub tx_stopped: bool,
pub tx_buf_unavailable: bool,
pub tx_underflow: bool,
pub rx_complete: bool,
pub rx_stopped: bool,
pub rx_buf_unavailable: bool,
pub rx_overflow: bool,
pub fatal_bus_error: bool,
pub normal_summary: bool,
pub abnormal_summary: bool,
}Expand description
Decoded DMA status flags.
Fields§
§tx_complete: boolTX complete — a frame was transmitted successfully.
tx_stopped: boolTX DMA stopped.
No TX descriptors available.
tx_underflow: boolTX FIFO underflow.
rx_complete: boolRX complete — a frame was received.
rx_stopped: boolRX DMA stopped.
No RX descriptors available (DMA suspended).
rx_overflow: boolRX FIFO overflow.
fatal_bus_error: boolFatal bus error — unrecoverable DMA error.
normal_summary: boolNormal interrupt summary.
abnormal_summary: boolAbnormal interrupt summary.
Implementations§
Source§impl InterruptStatus
impl InterruptStatus
Sourcepub fn to_raw(&self) -> u32
pub fn to_raw(&self) -> u32
Encode back to a raw register value, retaining only the bits modeled by this struct.
Do not use this for write-1-to-clear of DMASTATUS — the
struct does not represent every W1C flag (e.g. ERI, ETI,
RWT, TJT, EBE[25:23]), so a roundtrip silently drops
them. Use the raw DMASTATUS snapshot directly via
crate::Emac::clear_interrupts_raw when clearing.
Trait Implementations§
Source§impl Clone for InterruptStatus
impl Clone for InterruptStatus
Source§fn clone(&self) -> InterruptStatus
fn clone(&self) -> InterruptStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterruptStatus
impl Debug for InterruptStatus
Source§impl Default for InterruptStatus
impl Default for InterruptStatus
Source§fn default() -> InterruptStatus
fn default() -> InterruptStatus
Returns the “default value” for a type. Read more
Source§impl Format for InterruptStatus
impl Format for InterruptStatus
Source§impl PartialEq for InterruptStatus
impl PartialEq for InterruptStatus
Source§fn eq(&self, other: &InterruptStatus) -> bool
fn eq(&self, other: &InterruptStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InterruptStatus
impl Eq for InterruptStatus
impl StructuralPartialEq for InterruptStatus
Auto Trait Implementations§
impl Freeze for InterruptStatus
impl RefUnwindSafe for InterruptStatus
impl Send for InterruptStatus
impl Sync for InterruptStatus
impl Unpin for InterruptStatus
impl UnsafeUnpin for InterruptStatus
impl UnwindSafe for InterruptStatus
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