pub enum FixedChannelList {
Mhz800,
Mhz900,
}Expand description
A published list that gives every channel number a frequency.
RP002-1.0.5 section 3.3.1 fixes a frequency for each number, so a network can enable channels on a device with a bit each rather than spelling their frequencies out. A join accept’s type 1 channel list is read this way in a dynamic channel plan: each bit set creates the channel its number stands for.
§Examples
use pamoja_lora::region::FixedChannelList;
assert_eq!(FixedChannelList::Mhz800.frequency_hz(0), Some(863_100_000));
assert_eq!(FixedChannelList::Mhz800.frequency_hz(39), Some(865_985_000));
assert_eq!(FixedChannelList::Mhz900.frequency_hz(95), Some(924_600_000));
assert_eq!(FixedChannelList::Mhz900.frequency_hz(96), None);Variants§
Mhz800
Section 3.3.1.1: forty channels, from 863.1 MHz in 200 kHz steps to 869.9 MHz at channel 34, then five at 865.0625, 865.4025, 865.6025, 865.785 and 865.985 MHz. It covers the channels EU868, IN865 and RU864 networks run.
Mhz900
Section 3.3.1.2: ninety-six channels, from 915.1 MHz in 100 kHz steps to 924.6 MHz. It covers the channels AS923 and KR920 networks run.
Implementations§
Trait Implementations§
Source§impl Clone for FixedChannelList
impl Clone for FixedChannelList
Source§fn clone(&self) -> FixedChannelList
fn clone(&self) -> FixedChannelList
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 moreimpl Copy for FixedChannelList
Source§impl Debug for FixedChannelList
impl Debug for FixedChannelList
impl Eq for FixedChannelList
Source§impl Hash for FixedChannelList
impl Hash for FixedChannelList
Source§impl PartialEq for FixedChannelList
impl PartialEq for FixedChannelList
impl StructuralPartialEq for FixedChannelList
Auto Trait Implementations§
impl Freeze for FixedChannelList
impl RefUnwindSafe for FixedChannelList
impl Send for FixedChannelList
impl Sync for FixedChannelList
impl Unpin for FixedChannelList
impl UnsafeUnpin for FixedChannelList
impl UnwindSafe for FixedChannelList
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