embassy-stm32-wpan

Crates

git

Versions

default

Flavors

embassy_stm32_wpan::mac::commands

Struct StartRequest

Source
#[repr(C)]
pub struct StartRequest {
Show 16 fields pub pan_id: PanId, pub channel_number: MacChannel, pub channel_page: u8, pub start_time: [u8; 4], pub beacon_order: u8, pub superframe_order: u8, pub pan_coordinator: bool, pub battery_life_extension: bool, pub coord_realignment: u8, pub coord_realign_security_level: SecurityLevel, pub coord_realign_key_id_index: u8, pub coord_realign_key_source: [u8; 8], pub beacon_security_level: SecurityLevel, pub beacon_key_id_mode: KeyIdMode, pub beacon_key_index: u8, pub beacon_key_source: [u8; 8],
}
Expand description

MLME START Request used by the FFDs to intiate a new PAN or to begin using a new superframe configuration

Fields§

§pan_id: PanId

PAN indentifier to used by the device

§channel_number: MacChannel

logical channel on which to begin

§channel_page: u8

channel page on which to begin

§start_time: [u8; 4]

time at which to begin transmitting beacons

§beacon_order: u8

indicated how often the beacon is to be transmitted

§superframe_order: u8

length of the active portion of the superframe

§pan_coordinator: bool

indicated wheter the device is a PAN coordinator or not

§battery_life_extension: bool

indicates if the receiver of the beaconing device is disabled or not

§coord_realignment: u8

indicated if the coordinator realignment command is to be trasmitted

§coord_realign_security_level: SecurityLevel

indicated if the coordinator realignment command is to be trasmitted

§coord_realign_key_id_index: u8

index of the key to be used

§coord_realign_key_source: [u8; 8]

originator of the key to be used

§beacon_security_level: SecurityLevel

security level to be used for beacon frames

§beacon_key_id_mode: KeyIdMode

mode used to identify the key to be used

§beacon_key_index: u8

index of the key to be used

§beacon_key_source: [u8; 8]

originator of the key to be used

Trait Implementations§

Source§

impl Default for StartRequest

Source§

fn default() -> StartRequest

Returns the “default value” for a type. Read more
Source§

impl MacCommand for StartRequest

Source§

const OPCODE: OpcodeM4ToM0 = OpcodeM4ToM0::MlmeStartReq

Source§

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

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.