Files
firmware/src/mesh/MeshRadio.h

24 lines
534 B
C
Raw Normal View History

2020-02-01 08:59:16 -08:00
#pragma once
#include "MemoryPool.h"
2020-02-03 09:13:19 -08:00
#include "MeshTypes.h"
#include "PointerQueue.h"
#include "configuration.h"
2020-02-01 11:25:07 -08:00
// Map from old region names to new region enums
struct RegionInfo {
2022-05-07 20:31:21 +10:00
Config_LoRaConfig_RegionCode code;
float freqStart;
float freqEnd;
float dutyCycle;
float spacing;
uint8_t powerLimit; // Or zero for not set
bool audioPermitted;
bool freqSwitching;
const char *name; // EU433 etc
};
2020-10-21 17:27:13 +08:00
extern const RegionInfo regions[];
extern const RegionInfo *myRegion;
extern void initRegion();