mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 03:09:59 +00:00
25 lines
553 B
C
25 lines
553 B
C
#pragma once
|
|
|
|
#include "MemoryPool.h"
|
|
#include "MeshTypes.h"
|
|
#include "PointerQueue.h"
|
|
#include "configuration.h"
|
|
|
|
// Map from old region names to new region enums
|
|
struct RegionInfo {
|
|
Config_LoRaConfig_RegionCode code;
|
|
float freqStart;
|
|
float freqEnd;
|
|
float dutyCycle;
|
|
float spacing;
|
|
uint8_t powerLimit; // Or zero for not set
|
|
bool audioPermitted;
|
|
bool freqSwitching;
|
|
bool wideLora;
|
|
const char *name; // EU433 etc
|
|
};
|
|
|
|
extern const RegionInfo regions[];
|
|
extern const RegionInfo *myRegion;
|
|
|
|
extern void initRegion(); |