pub struct EspMlme<'a> { /* private fields */ }Expand description
ESP32-C6 Mlme implementation.
The radio is a single shared resource: the inner state is held behind an
async mutex so the trait’s &self methods can be driven concurrently from a
receive task and a transmit path. The extended address is cached so it can
be read without locking.
Implementations§
Source§impl<'a> EspMlme<'a>
impl<'a> EspMlme<'a>
pub fn new(ieee802154: Ieee802154<'a>, config: Config) -> Self
Sourcepub fn ieee_address(&self) -> u64
pub fn ieee_address(&self) -> u64
The device’s IEEE 802.15.4 extended (EUI-64) address.
Trait Implementations§
Source§impl Mlme for EspMlme<'_>
impl Mlme for EspMlme<'_>
Source§fn ieee_address(&self) -> IeeeAddress
fn ieee_address(&self) -> IeeeAddress
The device’s IEEE (extended) address as provisioned by the hardware,
e.g. read from efuse.
Source§async fn configure(&self, config: MacConfig)
async fn configure(&self, config: MacConfig)
MLME-SET.request of the addressing attributes (IEEE 802.15.4 7.4.2)
and the operating channel. Read more
async fn scan_network( &self, ty: ScanType, channels: Range<u8>, duration: u8, ) -> Result<ScanResult, MacError>
async fn associate( &self, channel: u8, dest: Address, capabilities: CapabilityInformation, ) -> Result<AssociationResponse, MacError>
Source§async fn poll_data(
&self,
coord_address: Address,
buf: &mut [u8],
) -> Result<(usize, u8), MacError>
async fn poll_data( &self, coord_address: Address, buf: &mut [u8], ) -> Result<(usize, u8), MacError>
MLME-POLL.request + data reception (IEEE 802.15.4 7.1.16.1). Read more
Auto Trait Implementations§
impl<'a> !Freeze for EspMlme<'a>
impl<'a> !RefUnwindSafe for EspMlme<'a>
impl<'a> Send for EspMlme<'a>
impl<'a> Sync for EspMlme<'a>
impl<'a> Unpin for EspMlme<'a>
impl<'a> UnsafeUnpin for EspMlme<'a>
impl<'a> UnwindSafe for EspMlme<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more