idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
airtime.hpp File Reference

LoRa time-on-air (air-time) calculation. More...

#include <idfxx/radio/types.hpp>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  idfxx
 
namespace  idfxx::radio
 LoRa radio types and driver classes.
 

Functions

constexpr std::chrono::microseconds idfxx::radio::time_on_air (const lora_modulation &mod, const lora_packet_params &pkt, size_t payload_length) noexcept
 Computes the time-on-air of a LoRa packet.
 

Detailed Description

LoRa time-on-air (air-time) calculation.

A pure, side-effect-free helper that computes how long a LoRa packet of a given length will occupy the channel for a set of modulation and framing parameters. It needs no chip and performs no I/O, so it is constexpr and can size transmit timeouts, schedule duty cycles, or feed listen-before-talk logic without ever touching hardware.

Definition in file airtime.hpp.