Updates
This commit is contained in:
committed by
Ulf Lilleengen
parent
bb72f7eb98
commit
fb697a2657
@ -561,6 +561,16 @@ impl FskModParams {
|
||||
bw > br + 2 * fdev + freq_err
|
||||
}
|
||||
|
||||
/// Returns `true` if the modulation parameters are valid for a worst-case
|
||||
/// crystal tolerance.
|
||||
///
|
||||
/// This is equivalent to [`is_valid`](Self::is_valid) with a `ppm` argument
|
||||
/// of 30.
|
||||
#[must_use = "the return value indicates if the modulation parameters are valid"]
|
||||
pub const fn is_valid_worst_case(&self) -> bool {
|
||||
self.is_valid(30)
|
||||
}
|
||||
|
||||
/// Extracts a slice containing the packet.
|
||||
///
|
||||
/// # Example
|
||||
@ -613,11 +623,11 @@ pub enum SpreadingFactor {
|
||||
/// Spreading factor 9.
|
||||
Sf9 = 0x09,
|
||||
/// Spreading factor 10.
|
||||
Sf10 = 0xA0,
|
||||
Sf10 = 0x0A,
|
||||
/// Spreading factor 11.
|
||||
Sf11 = 0xB0,
|
||||
Sf11 = 0x0B,
|
||||
/// Spreading factor 12.
|
||||
Sf12 = 0xC0,
|
||||
Sf12 = 0x0C,
|
||||
}
|
||||
|
||||
impl From<SpreadingFactor> for u8 {
|
||||
|
Reference in New Issue
Block a user