Skip to main content

pamoja_sx127x_tx_power_under_ceiling

Function pamoja_sx127x_tx_power_under_ceiling 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_sx127x_tx_power_under_ceiling( pa_boost: bool, budget: PamojaLoraLinkBudget, eirp_ceiling_centi_dbm: i32, ) -> PamojaSx127xTxPower
Expand description

Returns the SX127x amplifier settings that keep a link’s EIRP at or under a ceiling.

§Arguments

  • pa_boost - true for the PA_BOOST output, false for RFO.
  • budget - the link budget, whose transmitting antenna and cable apply.
  • eirp_ceiling_centi_dbm - the EIRP limit in hundredths of a dBm.

§Returns

The settings, rounded down to whole decibels.