pub struct WifiDevice<'d> { /* private fields */ }Expand description
A wifi device implementing smoltcp’s Device trait.
Implementations§
Source§impl WifiDevice<'_>
 
impl WifiDevice<'_>
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 Device for WifiDevice<'_>
 
impl Device for WifiDevice<'_>
type RxToken<'a> = WifiRxToken where Self: 'a
type TxToken<'a> = WifiTxToken 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 Driver for WifiDevice<'_>
 
impl Driver for WifiDevice<'_>
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