embassy-net-esp-hosted

Crates

git

Versions

default

Flavors

embassy_net_esp_hosted

Function new

Source
pub async fn new<'a, SPI, IN, OUT>(
    state: &'a mut State,
    spi: SPI,
    handshake: IN,
    ready: IN,
    reset: OUT,
) -> (NetDriver<'a>, Control<'a>, Runner<'a, SPI, IN, OUT>)
where SPI: SpiDevice, IN: InputPin + Wait, OUT: OutputPin,
Expand description

Create a new esp-hosted driver using the provided state, SPI peripheral and pins.

Returns a device handle for interfacing with embassy-net, a control handle for interacting with the driver, and a runner for communicating with the WiFi device.