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