pub enum MacError {
Phy(PhyError),
ResetTimeout,
StopTimeout,
DmaBufferAboveCacheBoundary {
addr: u32,
},
}Expand description
Errors surfaced by the top-level MAC/device lifecycle.
Variants§
Phy(PhyError)
PHY initialization or negotiation failed.
ResetTimeout
DMA reset did not complete in time.
StopTimeout
DMA stop sequence did not quiesce in time.
DmaBufferAboveCacheBoundary
One of the descriptor or buffer arrays handed to the constructor lives
at or above the L2-cache backing region (0x4FF80000). Bus masters
cannot read or write that range, so any DMA transfer would silently
fail. Place StaticDmaResources under
#[link_section = ".dma_bss"] (the linker script’s RAM_DMA region
keeps it below the cache boundary).
Trait Implementations§
impl Copy for MacError
impl Eq for MacError
impl StructuralPartialEq for MacError
Auto Trait Implementations§
impl Freeze for MacError
impl RefUnwindSafe for MacError
impl Send for MacError
impl Sync for MacError
impl Unpin for MacError
impl UnsafeUnpin for MacError
impl UnwindSafe for MacError
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