Skip to main content

pamoja_lora_airtime_us

Function pamoja_lora_airtime_us 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_lora_airtime_us( link: PamojaLoraLink, payload_len: usize, ) -> u64
Expand description

Returns the time on air of a payload, in microseconds.

This is the channel occupancy a transmission costs: how long the radio holds the air, which sets both the duty-cycle budget and most of the energy the transmission spends.

§Arguments

  • link - the link settings.
  • payload_len - the payload length in bytes.

§Returns

The time on air in microseconds.