|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Duty-cycled receive window calculation. More...
#include <idfxx/radio/airtime.hpp>#include <idfxx/radio/types.hpp>#include <chrono>#include <cstdint>#include <optional>#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::optional< rx_duty_cycle > | idfxx::radio::rx_duty_cycle_for (const lora_modulation &mod, uint16_t sender_preamble, uint16_t min_symbols=8, std::chrono::microseconds min_sleep=default_min_rx_sleep) noexcept |
| Computes duty-cycle receive windows that cannot miss a packet. | |
Variables | |
| constexpr std::chrono::microseconds | idfxx::radio::default_min_rx_sleep {1016} |
| Default shortest sleep window worth duty-cycling for. | |
Duty-cycled receive window calculation.
A pure, side-effect-free helper that computes listen/sleep windows for duty-cycled receive from the modulation parameters and the preamble length senders use. It needs no chip and performs no I/O, so it is constexpr and the windows can be computed at compile time for a fixed link configuration.
Definition in file duty_cycle.hpp.