Enum radio::config::ConfigOption
source · #[non_exhaustive]pub enum ConfigOption {
MAC([u8; 6]),
IPv4([u8; 4]),
IPv6([u8; 16]),
ShortAddress(u16),
LongAddress(u64),
PAN(u16),
MTU(u16),
TXPower(i16),
AwaitCCA(bool),
CCAThreshold(i16),
AutoAck(bool),
Promiscuous(bool),
}
Expand description
Radio configuration options
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MAC([u8; 6])
MAC address
IPv4([u8; 4])
IPv4 address
IPv6([u8; 16])
IPv6 address
ShortAddress(u16)
IEEE802.15.4(g) / ZigBee address options Short (16-bit) Address
LongAddress(u64)
Long (64-bit) Address
PAN(u16)
PAN ID
MTU(u16)
Maximum Transmission Unit (MTU)
TXPower(i16)
Transmit power (dBm)
AwaitCCA(bool)
Await Clear Channel before TX (if supported)
CCAThreshold(i16)
CCA threshold in dBm (used if AwaitCCA is set)
AutoAck(bool)
Automatic Acknowledgement (if supported) sends 802.15.4 acknowledgements automatically
Promiscuous(bool)
Promiscuous mode (if supported) disables hardware address filtering
Trait Implementations§
source§impl Clone for ConfigOption
impl Clone for ConfigOption
source§fn clone(&self) -> ConfigOption
fn clone(&self) -> ConfigOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfigOption
impl Debug for ConfigOption
source§impl PartialEq for ConfigOption
impl PartialEq for ConfigOption
source§fn eq(&self, other: &ConfigOption) -> bool
fn eq(&self, other: &ConfigOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConfigOption
Auto Trait Implementations§
impl Freeze for ConfigOption
impl RefUnwindSafe for ConfigOption
impl Send for ConfigOption
impl Sync for ConfigOption
impl Unpin for ConfigOption
impl UnwindSafe for ConfigOption
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