pub struct EthernetDMA<'rx, 'tx> { /* private fields */ }
Expand description

Ethernet DMA.

Implementations

Enable RX and TX interrupts

In your handler you must call eth_interrupt_handler() to clear interrupt pending bits. Otherwise the interrupt will reoccur immediately.

Is Rx DMA currently running?

It stops if the ring is full. Call recv_next() to free an entry and to demand poll from the hardware.

Receive the next packet (if any is ready), or return None immediately.

Is Tx DMA currently running?

Send a packet

Trait Implementations

Use this Ethernet driver with smoltcp

Get a description of device capabilities.

Construct a token pair consisting of one receive token and one transmit token. Read more

Construct a transmit token.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.