Struct esp_wifi::wifi::WifiDevice
source · pub struct WifiDevice<'d, MODE: WifiDeviceMode> { /* private fields */ }
Expand description
A wifi device implementing smoltcp’s Device trait.
Implementations§
source§impl<'d, MODE: WifiDeviceMode> WifiDevice<'d, MODE>
impl<'d, MODE: WifiDeviceMode> WifiDevice<'d, MODE>
sourcepub fn mac_address(&self) -> [u8; 6]
pub fn mac_address(&self) -> [u8; 6]
Retrieves the MAC address of the Wi-Fi device.
Trait Implementations§
source§impl<MODE: WifiDeviceMode> Device for WifiDevice<'_, MODE>
impl<MODE: WifiDeviceMode> Device for WifiDevice<'_, MODE>
type RxToken<'a> = WifiRxToken<MODE> where Self: 'a
type TxToken<'a> = WifiTxToken<MODE> where Self: 'a
source§fn receive(
&mut self,
_instant: Instant,
) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
fn receive( &mut self, _instant: Instant, ) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
Construct a token pair consisting of one receive token and one transmit token. Read more
source§fn transmit(&mut self, _instant: Instant) -> Option<Self::TxToken<'_>>
fn transmit(&mut self, _instant: Instant) -> Option<Self::TxToken<'_>>
Construct a transmit token. Read more
source§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.
source§impl<MODE: WifiDeviceMode> Driver for WifiDevice<'_, MODE>
impl<MODE: WifiDeviceMode> Driver for WifiDevice<'_, MODE>
source§type RxToken<'a> = WifiRxToken<MODE>
where
Self: 'a
type RxToken<'a> = WifiRxToken<MODE> where Self: 'a
A token to receive a single network packet.
source§type TxToken<'a> = WifiTxToken<MODE>
where
Self: 'a
type TxToken<'a> = WifiTxToken<MODE> where Self: 'a
A token to transmit a single network packet.
source§fn receive(
&mut self,
cx: &mut Context<'_>,
) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
fn receive( &mut self, cx: &mut Context<'_>, ) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
Construct a token pair consisting of one receive token and one transmit token. Read more
source§fn transmit(&mut self, cx: &mut Context<'_>) -> Option<Self::TxToken<'_>>
fn transmit(&mut self, cx: &mut Context<'_>) -> Option<Self::TxToken<'_>>
Construct a transmit token. Read more
source§fn link_state(&mut self, cx: &mut Context<'_>) -> LinkState
fn link_state(&mut self, cx: &mut Context<'_>) -> LinkState
Get the link state. Read more
source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
Get a description of device capabilities.
source§fn hardware_address(&self) -> HardwareAddress
fn hardware_address(&self) -> HardwareAddress
Get the device’s hardware address. Read more