Skip to main content

pamoja_sx126x_tx_power_for_output

Function pamoja_sx126x_tx_power_for_output 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_sx126x_tx_power_for_output( high_power: bool, output_dbm: i8, ) -> PamojaSx126xTxPower
Expand description

Chooses the amplifier settings for an output power.

§Arguments

  • high_power - true for the high power amplifier of the SX1262 and the LLCC68, false for the low power amplifier of the SX1261.
  • output_dbm - the output power wanted at the antenna port.

§Returns

The configuration and the power setting, clamped to what the amplifier allows.