firmware/src/mesh/MeshRadio.h

24 lines
516 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 {
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 09:27:13 +00:00
extern const RegionInfo regions[];
extern const RegionInfo *myRegion;
extern void initRegion();