pub struct WifiModem<'a>(/* private fields */);Implementations§
Source§impl WifiModem<'_>
impl WifiModem<'_>
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Sourcepub unsafe fn reborrow(&mut self) -> WifiModem<'_>
pub unsafe fn reborrow(&mut self) -> WifiModem<'_>
Creates a new peripheral reference with a shorter lifetime.
Use this method if you would like to keep working with the peripheral after you dropped the driver that consumes this.
§Safety
You must ensure that you are not using reborrowed peripherals in drivers which are
forgotten via core::mem::forget.
Trait Implementations§
impl Send for WifiModem<'_>
impl WifiModemPeripheral for WifiModem<'_>
Available on non-
esp32h2 only.