Skip to main content

tx_modulation

Function tx_modulation 

Source
pub const fn tx_modulation(current: u8, bandwidth: LoraBandwidth) -> u8
Expand description

Returns the TX modulation register value for a transmission, from section 15.1.

Bit 2 is cleared for a 500 kHz LoRa bandwidth and set for every other bandwidth.

§Arguments

  • current - the register value read back from the chip.
  • bandwidth - the LoRa bandwidth about to be used.

§Returns

The value to write.