Files
firmware/src/mesh/MeshRadio.h

25 lines
564 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 {
meshtastic_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 19:07:58 +02:00
bool wideLora;
const char *name; // EU433 etc
};
2020-10-21 17:27:13 +08:00
extern const RegionInfo regions[];
extern const RegionInfo *myRegion;
extern void initRegion();