pub struct DlSettings(pub u8);Expand description
DLSettings byte in a Join Accept.
Bit layout:
- Bit 7:
OptNeg(LoRaWAN1.1 only) - Bits 6..4:
RX1DRoffset - Bits 3..0:
RX2DataRate
OptNeg = 1 signals that the device should operate in 1.1 mode
(dual-MIC, separate JS keys, etc.); OptNeg = 0 keeps the session in
1.0 compatibility mode.
Tuple Fields§
§0: u8Implementations§
Source§impl DlSettings
impl DlSettings
Sourcepub const fn rx1_dr_offset(&self) -> u8
pub const fn rx1_dr_offset(&self) -> u8
RX1 data-rate offset (3 bits).
Sourcepub const fn rx2_data_rate(&self) -> u8
pub const fn rx2_data_rate(&self) -> u8
RX2 data rate (4 bits).
Trait Implementations§
Source§impl Clone for DlSettings
impl Clone for DlSettings
Source§fn clone(&self) -> DlSettings
fn clone(&self) -> DlSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DlSettings
impl Debug for DlSettings
Source§impl<'de> Deserialize<'de> for DlSettings
impl<'de> Deserialize<'de> for DlSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DlSettings
impl Hash for DlSettings
Source§impl PartialEq for DlSettings
impl PartialEq for DlSettings
Source§fn eq(&self, other: &DlSettings) -> bool
fn eq(&self, other: &DlSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DlSettings
impl Serialize for DlSettings
impl Copy for DlSettings
impl Eq for DlSettings
impl StructuralPartialEq for DlSettings
Auto Trait Implementations§
impl Freeze for DlSettings
impl RefUnwindSafe for DlSettings
impl Send for DlSettings
impl Sync for DlSettings
impl Unpin for DlSettings
impl UnsafeUnpin for DlSettings
impl UnwindSafe for DlSettings
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