diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /FoxGuardBands.hpp | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'FoxGuardBands.hpp')
| -rw-r--r-- | FoxGuardBands.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/FoxGuardBands.hpp b/FoxGuardBands.hpp new file mode 100644 index 00000000..985e6bf3 --- /dev/null +++ b/FoxGuardBands.hpp @@ -0,0 +1,30 @@ +#ifndef FOX_GUARD_BANDS_HPP__ +#define FOX_GUARD_BANDS_HPP__ + +#include <initializer_list> + +#include "Radio.hpp" + +namespace FoxGuardBands +{ + enum class GuardKind + { + None, + StandardFT8, + WSPR + }; + + struct Match + { + bool blocked; + GuardKind kind; + Radio::Frequency guard_frequency; + }; + + Match check (Radio::Frequency dial_frequency, + std::initializer_list<Radio::Frequency> standard_ft8_guards, + std::initializer_list<Radio::Frequency> wspr_guards); + Match check (Radio::Frequency dial_frequency); +} + +#endif |
