pub enum CodingRate {
Cr4_5,
Cr4_6,
Cr4_7,
Cr4_8,
Cr4_5LongInterleaver,
Cr4_6LongInterleaver,
Cr4_8LongInterleaver,
}Expand description
A LoRa coding rate, from Table 13-49.
Variants§
Cr4_5
4/5 (0x01).
Cr4_6
4/6 (0x02).
Cr4_7
4/7 (0x03).
Cr4_8
4/8 (0x04).
Cr4_5LongInterleaver
4/5 with the long interleaver (0x05).
Cr4_6LongInterleaver
4/6 with the long interleaver (0x06).
Cr4_8LongInterleaver
4/8 with the long interleaver (0x07).
Implementations§
Source§impl CodingRate
impl CodingRate
Sourcepub const fn from_denominator(denominator: u8) -> CodingRate
pub const fn from_denominator(denominator: u8) -> CodingRate
Returns the standard-interleaver coding rate for a denominator.
The airtime pamoja-lora computes assumes the standard interleaver, so a link’s
coding rate always maps to one of the first four settings.
§Arguments
denominator- the coding-rate denominator, clamped to 5 to 8.
§Returns
The coding rate.
Trait Implementations§
Source§impl Clone for CodingRate
impl Clone for CodingRate
Source§fn clone(&self) -> CodingRate
fn clone(&self) -> CodingRate
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 CodingRate
Source§impl Debug for CodingRate
impl Debug for CodingRate
impl Eq for CodingRate
Source§impl Hash for CodingRate
impl Hash for CodingRate
Source§impl PartialEq for CodingRate
impl PartialEq for CodingRate
Source§fn eq(&self, other: &CodingRate) -> bool
fn eq(&self, other: &CodingRate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodingRate
Auto Trait Implementations§
impl Freeze for CodingRate
impl RefUnwindSafe for CodingRate
impl Send for CodingRate
impl Sync for CodingRate
impl Unpin for CodingRate
impl UnsafeUnpin for CodingRate
impl UnwindSafe for CodingRate
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