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>)
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.