firmware/src/mesh/MeshRadio.h

25 lines
553 B
C
Raw Normal View History

2020-02-01 16:59:16 +00:00
#pragma once
#include "MemoryPool.h"
2020-02-03 17:13:19 +00:00
#include "MeshTypes.h"
#include "PointerQueue.h"
#include "configuration.h"
2020-02-01 19:25:07 +00:00
// Map from old region names to new region enums
struct RegionInfo {
2022-05-07 10:31:21 +00: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;
2022-10-16 17:07:58 +00:00
bool wideLora;
const char *name; // EU433 etc
};
2020-10-21 09:27:13 +00:00
extern const RegionInfo regions[];
extern const RegionInfo *myRegion;
extern void initRegion();