Enum stm32wlxx_hal::subghz::CodingRate
source · #[repr(u8)]pub enum CodingRate {
Cr44 = 0,
Cr45 = 1,
Cr46 = 2,
Cr47 = 3,
Cr48 = 4,
}
Expand description
LoRa forward error correction coding rate.
Argument of LoRaModParams::set_cr
.
A higher coding rate provides better immunity to interference at the expense
of longer transmission time.
In normal conditions CodingRate::Cr45
provides the best trade off.
In case of strong interference, a higher coding rate may be used.
Variants§
Cr44 = 0
No forward error correction coding rate 4/4
Overhead ratio of 1
Cr45 = 1
Forward error correction coding rate 4/5
Overhead ratio of 1.25
Cr46 = 2
Forward error correction coding rate 4/6
Overhead ratio of 1.5
Cr47 = 3
Forward error correction coding rate 4/7
Overhead ratio of 1.75
Cr48 = 4
Forward error correction coding rate 4/8
Overhead ratio of 2
Trait Implementations§
source§impl Clone for CodingRate
impl Clone for CodingRate
source§fn clone(&self) -> CodingRate
fn clone(&self) -> CodingRate
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 CodingRate
impl Debug for CodingRate
source§impl Ord for CodingRate
impl Ord for CodingRate
source§fn cmp(&self, other: &CodingRate) -> Ordering
fn cmp(&self, other: &CodingRate) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CodingRate
impl PartialEq for CodingRate
source§fn eq(&self, other: &CodingRate) -> bool
fn eq(&self, other: &CodingRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CodingRate
impl PartialOrd for CodingRate
source§fn partial_cmp(&self, other: &CodingRate) -> Option<Ordering>
fn partial_cmp(&self, other: &CodingRate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CodingRate
impl Eq for CodingRate
impl StructuralEq for CodingRate
impl StructuralPartialEq for CodingRate
Auto Trait Implementations§
impl RefUnwindSafe for CodingRate
impl Send for CodingRate
impl Sync for CodingRate
impl Unpin 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