pub struct Modem<'a>(/* private fields */);Implementations§
Source§impl Modem<'_>
impl Modem<'_>
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) -> Modem<'_>
pub unsafe fn reborrow(&mut self) -> Modem<'_>
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.
Source§impl<'d> Modem<'d>
impl<'d> Modem<'d>
pub fn split(self) -> (WifiModem<'d>, BluetoothModem<'d>)
pub fn split_reborrow(&mut self) -> (WifiModem<'_>, BluetoothModem<'_>)
Trait Implementations§
impl BluetoothModemPeripheral for Modem<'_>
Available on neither
esp32s2 nor esp32p4.impl Send for Modem<'_>
impl WifiModemPeripheral for Modem<'_>
Available on non-
esp32h2 only.