#pragma once #include #include #include "packet_view.h" namespace roro::lora { // What the LoRa Scanner can be told to listen to by name: the Meshtastic presets allowed in // EU_868, LongFast first, then MeshCore's EU/UK (Narrow), the default. The order is kept: the // chosen one is stored by its number. struct ScanPreset { const char* name; uint32_t frequencyHz; float bwKHz; uint8_t sf, cr, syncWord; uint16_t preamble; Protocol protocol; }; constexpr size_t kDefaultScanPreset = 7; // MeshCore: the Settings' default says the same size_t scanPresetCount(); ScanPreset scanPreset(size_t i); // i < scanPresetCount() // By name, whatever its case. False when there is none. bool findScanPreset(const char* name, ScanPreset& out); } // namespace roro::lora