Skip to main content

spurious_reception

Function spurious_reception 

Source
pub const fn spurious_reception(bandwidth: LoraBandwidth) -> SpuriousReception
Expand description

Returns the receive settings of erratum 2.3 for a bandwidth, as Semtech’s LoRaMac-node applies them.

At 500 kHz the automatic IF stays on. Below it the IF is set by hand, and at 41.7 kHz and narrower the receiver also tunes one bandwidth above the carrier.

§Arguments

  • bandwidth - the signal bandwidth.

§Returns

The settings.

§Examples

use pamoja_radios::sx127x::config::{spurious_reception, LoraBandwidth};

let narrow = spurious_reception(LoraBandwidth::Khz20_8);
assert_eq!((narrow.if_freq_2, narrow.offset_hz), (Some(0x44), 20_830));
assert!(spurious_reception(LoraBandwidth::Khz500).automatic_if);