Skip to main content

high_bw_optimize

Function high_bw_optimize 

Source
pub const fn high_bw_optimize(
    bandwidth: LoraBandwidth,
    frequency_hz: u32,
) -> (u8, Option<u8>)
Expand description

RegHighBwOptimize1 and, where it changes, RegHighBwOptimize2 for a bandwidth.

These are the writes of erratum 2.1, sensitivity optimization with a 500 kHz bandwidth, as Semtech’s LoRaMac-node makes them: 0x02 and 0x64 above MID_BAND_HZ, 0x02 and 0x7F below, and 0x03 alone for any other bandwidth.

§Arguments

  • bandwidth - the signal bandwidth.
  • frequency_hz - the carrier frequency in hertz.

§Returns

The RegHighBwOptimize1 value, and the RegHighBwOptimize2 value when one is written.