Skip to main content

pamoja_sx126x_tx_power_under_ceiling

Function pamoja_sx126x_tx_power_under_ceiling 

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

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

§Arguments

  • high_power - true for the high power amplifier, false for the low power one.
  • budget - the link budget, whose transmitting antenna and cable apply.
  • eirp_ceiling_centi_dbm - the EIRP limit, in hundredths of a dBm.

§Returns

The configuration and the power setting, rounded down to whole decibels.