pub struct Windows { /* private fields */ }Expand description
When and where a network answers, and at what rate.
The defaults are the values recommended for every region in RP002-1.0.5 section 3.3: one second to the first receive window, five to the first join window, and no offset between the uplink data rate and the downlink one.
Implementations§
Source§impl Windows
impl Windows
Sourcepub const fn new() -> Windows
pub const fn new() -> Windows
Returns the recommended windows: one second, five seconds, no offset, answering on the frequency the uplink arrived on.
§Returns
The windows.
Sourcepub const fn with_receive_delay_us(self, micros: u32) -> Windows
pub const fn with_receive_delay_us(self, micros: u32) -> Windows
Sourcepub const fn with_join_delay_us(self, micros: u32) -> Windows
pub const fn with_join_delay_us(self, micros: u32) -> Windows
Sourcepub const fn with_rx1_data_rate_offset(self, offset: u8) -> Windows
pub const fn with_rx1_data_rate_offset(self, offset: u8) -> Windows
Sourcepub const fn with_rx1_channels(self, channels: Rx1Channels) -> Windows
pub const fn with_rx1_channels(self, channels: Rx1Channels) -> Windows
Sourcepub const fn receive_delay_us(&self) -> u32
pub const fn receive_delay_us(&self) -> u32
Sourcepub const fn join_delay_us(&self) -> u32
pub const fn join_delay_us(&self) -> u32
Sourcepub const fn rx1_data_rate_offset(&self) -> u8
pub const fn rx1_data_rate_offset(&self) -> u8
Sourcepub const fn rx1_channels(&self) -> Rx1Channels
pub const fn rx1_channels(&self) -> Rx1Channels
Sourcepub const fn rx_delay_byte(&self) -> u8
pub const fn rx_delay_byte(&self) -> u8
Returns the RXDelay byte a join accept carries.
TS001-1.0.4 table 44 puts the delay in the low four bits, in seconds, and states that a zero there means one second, so a sub-second delay cannot be expressed and rounds down to the same one second the device already assumes.
§Returns
The byte.
Sourcepub const fn dl_settings_byte(&self, rx2_data_rate: u8) -> u8
pub const fn dl_settings_byte(&self, rx2_data_rate: u8) -> u8
Trait Implementations§
impl Copy for Windows
impl Eq for Windows
impl StructuralPartialEq for Windows
Auto Trait Implementations§
impl Freeze for Windows
impl RefUnwindSafe for Windows
impl Send for Windows
impl Sync for Windows
impl Unpin for Windows
impl UnsafeUnpin for Windows
impl UnwindSafe for Windows
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