embassy-net-driver-channel

Crates

git

Versions

default

Flavors

embassy_net_driver_channel

Function new

Source
pub fn new<'d, const MTU: usize, const N_RX: usize, const N_TX: usize>(
    state: &'d mut State<MTU, N_RX, N_TX>,
    hardware_address: HardwareAddress,
) -> (Runner<'d, MTU>, Device<'d, MTU>)
Expand description

Create a channel.

Returns a pair of handles for interfacing with the peripheral and the networking stack.

The runner is interfacing with the peripheral at the lower part of the stack. The device is interfacing with the networking stack on the layer above.