embassy-stm32-wpan

Crates

git

Versions

default

Flavors

embassy_stm32_wpan::mac::indications

Struct DataIndication

Source
#[repr(C)]
pub struct DataIndication {
Show 23 fields pub msdu_ptr: *const u8, pub src_addr_mode: AddressMode, pub src_pan_id: PanId, pub src_address: MacAddress, pub dst_addr_mode: AddressMode, pub dst_pan_id: PanId, pub dst_address: MacAddress, pub msdu_length: u8, pub mpdu_link_quality: u8, pub dsn: u8, pub time_stamp: [u8; 4], pub key_source: [u8; 8], pub key_index: u8, pub uwbprf: u8, pub uwn_preamble_symbol_repetitions: u8, pub datrate: u8, pub ranging_received: u8, pub ranging_counter_start: u32, pub ranging_counter_stop: u32, pub ranging_tracking_interval: u32, pub ranging_offset: u32, pub ranging_fom: u8, pub rssi: u8, /* private fields */
}

Fields§

§msdu_ptr: *const u8

Pointer to the set of octets forming the MSDU being indicated

§src_addr_mode: AddressMode

Source addressing mode used

§src_pan_id: PanId

Source PAN ID

§src_address: MacAddress

Source address

§dst_addr_mode: AddressMode

Destination addressing mode used

§dst_pan_id: PanId

Destination PAN ID

§dst_address: MacAddress

Destination address

§msdu_length: u8

The number of octets contained in the MSDU being indicated

§mpdu_link_quality: u8

QI value measured during reception of the MPDU

§dsn: u8

The data sequence number of the received data frame

§time_stamp: [u8; 4]

The time, in symbols, at which the data were received

§key_source: [u8; 8]

The originator of the key

§key_index: u8

The index of the key

§uwbprf: u8

he pulse repetition value of the received PPDU

§uwn_preamble_symbol_repetitions: u8

The preamble symbol repetitions of the UWB PHY frame

§datrate: u8

Indicates the data rate

§ranging_received: u8

time units corresponding to an RMARKER at the antenna at the end of a ranging exchange,

§ranging_counter_start: u32§ranging_counter_stop: u32§ranging_tracking_interval: u32

ime units in a message exchange over which the tracking offset was measured

§ranging_offset: u32

time units slipped or advanced by the radio tracking system

§ranging_fom: u8

The FoM characterizing the ranging measurement

§rssi: u8

The Received Signal Strength Indicator measured

Implementations§

Source§

impl DataIndication

Source

pub fn payload<'a>(&'a self) -> &'a mut [u8]

Trait Implementations§

Source§

impl Debug for DataIndication

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.